aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/menuitem.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-18 09:07:38 -0600
committerTed Gould <ted@gould.cx>2010-11-18 09:07:38 -0600
commitf5227142593335542a62a8c7d3c122b8013cfead (patch)
tree2b415bff5a5272ab283db7f5d3f02cff6fb5cebb /libdbusmenu-glib/menuitem.c
parent1c2d3ea075efd02f8a655c45c89ec132d0e76828 (diff)
downloadlibdbusmenu-f5227142593335542a62a8c7d3c122b8013cfead.tar.gz
libdbusmenu-f5227142593335542a62a8c7d3c122b8013cfead.tar.bz2
libdbusmenu-f5227142593335542a62a8c7d3c122b8013cfead.zip
Fixing signal emition when there are new entries added to the property table.
Diffstat (limited to 'libdbusmenu-glib/menuitem.c')
-rw-r--r--libdbusmenu-glib/menuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c
index 3b5011b..d9fbf25 100644
--- a/libdbusmenu-glib/menuitem.c
+++ b/libdbusmenu-glib/menuitem.c
@@ -998,7 +998,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 (currentval != NULL && replaced) {
+ if (currentval == NULL || replaced) {
g_signal_emit(G_OBJECT(mi), signals[PROPERTY_CHANGED], 0, lprop, value, TRUE);
}