aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/menuitem.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-12 15:31:39 -0500
committerTed Gould <ted@canonical.com>2009-05-12 15:31:39 -0500
commit777fdb298f9f61e309fa9d0c31adb015667f9358 (patch)
treebb0bee872390804a2e6da59f3572a66b58b5776c /libdbusmenu-glib/menuitem.c
parent65cccec1e3ccf655a95d3d21e8b435df3bfbb477 (diff)
downloadlibdbusmenu-777fdb298f9f61e309fa9d0c31adb015667f9358.tar.gz
libdbusmenu-777fdb298f9f61e309fa9d0c31adb015667f9358.tar.bz2
libdbusmenu-777fdb298f9f61e309fa9d0c31adb015667f9358.zip
Changing the property update function to make it match closer to the dbus spec with two parameters.
Diffstat (limited to 'libdbusmenu-glib/menuitem.c')
-rw-r--r--libdbusmenu-glib/menuitem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c
index 28b0dd0..4ee88c7 100644
--- a/libdbusmenu-glib/menuitem.c
+++ b/libdbusmenu-glib/menuitem.c
@@ -95,6 +95,7 @@ dbusmenu_menuitem_class_init (DbusmenuMenuitemClass *klass)
DbusmenuMenuitem::property-changed:
@arg0: The #DbusmenuMenuitem object.
@arg1: The name of the property that changed
+ @arg2: The new value of the property
Emitted everytime a property on a menuitem is either
updated or added.
@@ -104,8 +105,8 @@ dbusmenu_menuitem_class_init (DbusmenuMenuitemClass *klass)
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET(DbusmenuMenuitemClass, property_changed),
NULL, NULL,
- g_cclosure_marshal_VOID__STRING,
- G_TYPE_NONE, 1, G_TYPE_STRING);
+ g_cclosure_marshal_VOID__STRING_STRING,
+ G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
g_object_class_install_property (object_class, PROP_ID,
g_param_spec_uint("id", "ID for the menu item",
@@ -439,7 +440,7 @@ dbusmenu_menuitem_property_set (DbusmenuMenuitem * mi, const gchar * property, c
gchar * lval = g_strdup(value);
g_hash_table_insert(priv->properties, lprop, lval);
- g_signal_emit(G_OBJECT(mi), signals[PROPERTY_CHANGED], 0, property, TRUE);
+ g_signal_emit(G_OBJECT(mi), signals[PROPERTY_CHANGED], 0, property, value, TRUE);
return TRUE;
}