aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-03-08 08:51:49 -0600
committerTed Gould <ted@gould.cx>2012-03-08 08:51:49 -0600
commita19fad6da18d3aec7aed4a4cddf3aeeb87249319 (patch)
tree56a2489f72eac8cb78068e516127c780080143a3 /libdbusmenu-glib
parent276115194a29219311adc1d968159beb6ee63609 (diff)
downloadlibdbusmenu-a19fad6da18d3aec7aed4a4cddf3aeeb87249319.tar.gz
libdbusmenu-a19fad6da18d3aec7aed4a4cddf3aeeb87249319.tar.bz2
libdbusmenu-a19fad6da18d3aec7aed4a4cddf3aeeb87249319.zip
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.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/menuitem.c3
1 files changed, 1 insertions, 2 deletions
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) {