aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-24 14:09:10 -0600
committerTed Gould <ted@gould.cx>2010-01-24 14:09:10 -0600
commit013addb9cfd5fe843d3336de90b6c687464a2c2c (patch)
treedbb6c06c519490f6f30efa0e7373c22b7411c4b6
parentcb00aab7f8f48423937e0fd238badc780c6a4ee2 (diff)
parent85e1c18ddc8803711f595572545125e0491beefa (diff)
downloadlibdbusmenu-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.c5
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;