diff options
author | Ted Gould <ted@gould.cx> | 2010-01-22 15:06:50 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-22 15:06:50 -0600 |
commit | 85e1c18ddc8803711f595572545125e0491beefa (patch) | |
tree | 0021071e9ed4b70a6e21c421f56e3619eacd0048 /libdbusmenu-gtk | |
parent | 921eaf7f51026b56b0a504c91214d40d07ce6040 (diff) | |
download | libdbusmenu-85e1c18ddc8803711f595572545125e0491beefa.tar.gz libdbusmenu-85e1c18ddc8803711f595572545125e0491beefa.tar.bz2 libdbusmenu-85e1c18ddc8803711f595572545125e0491beefa.zip |
Change the 'return_if_fail' to an if as the previous function makes an annoying message.
Diffstat (limited to 'libdbusmenu-gtk')
-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 dd94663..5146981 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; |