From 85e1c18ddc8803711f595572545125e0491beefa Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 22 Jan 2010 15:06:50 -0600 Subject: Change the 'return_if_fail' to an if as the previous function makes an annoying message. --- libdbusmenu-gtk/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3