aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-31 01:03:44 -0500
committerTed Gould <ted@gould.cx>2010-03-31 01:03:44 -0500
commit4d34ef26ed23a32ba777d1049a6fa6de88750516 (patch)
tree39dfd50046d7f2fe933ae36a319c1ca8d785d487
parent4f9bfdd91ad1ebd0fb8d778a717c9429a6c258c2 (diff)
downloadlibdbusmenu-4d34ef26ed23a32ba777d1049a6fa6de88750516.tar.gz
libdbusmenu-4d34ef26ed23a32ba777d1049a6fa6de88750516.tar.bz2
libdbusmenu-4d34ef26ed23a32ba777d1049a6fa6de88750516.zip
Removing this error. It's reasonable for this to happen, and the correction is that when we DO get the item, we'll ask for all of it's properties.
-rw-r--r--libdbusmenu-glib/client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 697420f..ae4b2f9 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -337,7 +337,12 @@ id_prop_update (DBusGProxy * proxy, gint id, gchar * property, GValue * value, D
g_return_if_fail(priv->root != NULL);
DbusmenuMenuitem * menuitem = dbusmenu_menuitem_find_id(priv->root, id);
- g_return_if_fail(menuitem != NULL);
+ if (menuitem == NULL) {
+ #ifdef MASSIVEDEBUGGING
+ g_debug("Property update '%s' on id %d which couldn't be found", property, id);
+ #endif
+ return;
+ }
dbusmenu_menuitem_property_set_value(menuitem, property, value);