diff options
author | Ted Gould <ted@gould.cx> | 2010-01-24 14:09:10 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-24 14:09:10 -0600 |
commit | 013addb9cfd5fe843d3336de90b6c687464a2c2c (patch) | |
tree | dbb6c06c519490f6f30efa0e7373c22b7411c4b6 | |
parent | cb00aab7f8f48423937e0fd238badc780c6a4ee2 (diff) | |
parent | 85e1c18ddc8803711f595572545125e0491beefa (diff) | |
download | libdbusmenu-013addb9cfd5fe843d3336de90b6c687464a2c2c.tar.gz libdbusmenu-013addb9cfd5fe843d3336de90b6c687464a2c2c.tar.bz2 libdbusmenu-013addb9cfd5fe843d3336de90b6c687464a2c2c.zip |
Fix an annoying warning that isn't really useful on image menuitems.
-rw-r--r-- | libdbusmenu-gtk/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 7f03c33..20e5523 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -468,7 +468,10 @@ static void image_property_handle (DbusmenuMenuitem * item, const gchar * property, const GValue * invalue, gpointer userdata) { /* We're only looking at these two properties here */ - g_return_if_fail(!g_strcmp0(property, DBUSMENU_MENUITEM_PROP_ICON) || !g_strcmp0(property, DBUSMENU_MENUITEM_PROP_ICON_DATA)); + if (g_strcmp0(property, DBUSMENU_MENUITEM_PROP_ICON) != 0 && + g_strcmp0(property, DBUSMENU_MENUITEM_PROP_ICON_DATA) != 0) { + return; + } const gchar * value = NULL; |