From a19fad6da18d3aec7aed4a4cddf3aeeb87249319 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 8 Mar 2012 08:51:49 -0600 Subject: Switching out logic, we're using replaced now because it gets set everytime that the hashtable is modified, and if we weren't modifying the hash table in some way, we don't want to signal. And, conversely, no one cares if we didn't modify the hash table. --- libdbusmenu-glib/menuitem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libdbusmenu-glib') diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 46546d6..253fe6e 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -1253,8 +1253,7 @@ dbusmenu_menuitem_property_set_variant (DbusmenuMenuitem * mi, const gchar * pro becuse it has been unref'd when replaced in the hash table. But the fact that there was a value is the imporant part. */ - if ((!inhash || replaced) && - !(!inhash && value == NULL)) { + if (replaced) { GVariant * signalval = value; if (signalval == NULL) { -- cgit v1.2.3