diff options
author | Ted Gould <ted@gould.cx> | 2009-12-21 16:15:45 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-21 16:15:45 -0600 |
commit | 7d0dbc3dd6be6ffaeca675b460767e20e505841e (patch) | |
tree | 0aae0f5596fe7f4f8f534e3dbb29f4992df7312c /libdbusmenu-glib | |
parent | 14e7084968a1ce9fe8a1c1419351f435acd0eda5 (diff) | |
download | libdbusmenu-7d0dbc3dd6be6ffaeca675b460767e20e505841e.tar.gz libdbusmenu-7d0dbc3dd6be6ffaeca675b460767e20e505841e.tar.bz2 libdbusmenu-7d0dbc3dd6be6ffaeca675b460767e20e505841e.zip |
Switching to a replace so that new values are added.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 2cefce4..a03117c 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -815,12 +815,13 @@ dbusmenu_menuitem_property_set_value (DbusmenuMenuitem * mi, const gchar * prope g_value_init(lval, G_VALUE_TYPE(value)); g_value_copy(value, lval); - g_hash_table_insert(priv->properties, lprop, lval); + g_hash_table_replace(priv->properties, lprop, lval); #ifdef MASSIVEDEBUGGING gchar * valstr = g_strdup_value_contents(lval); g_debug("Menuitem %d (%s) signalling property '%s' changed to '%s'", ID(mi), LABEL(mi), property, g_utf8_strlen(valstr, 50) < 25 ? valstr : "<too long>"); g_free(valstr); #endif + g_signal_emit(G_OBJECT(mi), signals[PROPERTY_CHANGED], 0, lprop, lval, TRUE); return TRUE; |