diff options
author | Ted Gould <ted@canonical.com> | 2009-06-05 15:05:12 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-06-05 15:05:12 -0500 |
commit | 3c9734543b84ecd412ffd214ac0560b11858a00a (patch) | |
tree | ab9fcd33632bf90eb6374408a6d4bb2e4a9050e3 | |
parent | 8d503ab2a495ffec09b84bfa376f1771ba47138c (diff) | |
download | libdbusmenu-3c9734543b84ecd412ffd214ac0560b11858a00a.tar.gz libdbusmenu-3c9734543b84ecd412ffd214ac0560b11858a00a.tar.bz2 libdbusmenu-3c9734543b84ecd412ffd214ac0560b11858a00a.zip |
Making the ID update function rebuild all of the properties. Result of a code review comment by Cody Russell.
-rw-r--r-- | libdbusmenu-glib/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index c6833cc..6094eca 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -86,6 +86,7 @@ static DbusmenuMenuitem * parse_layout_xml(xmlNodePtr node, DbusmenuMenuitem * i static void parse_layout (DbusmenuClient * client, const gchar * layout); static void update_layout_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data); static void update_layout (DbusmenuClient * client); +static void menuitem_get_properties_cb (DBusGProxy * proxy, GHashTable * properties, GError * error, gpointer data); /* Build a type */ G_DEFINE_TYPE (DbusmenuClient, dbusmenu_client, G_TYPE_OBJECT); @@ -267,7 +268,7 @@ id_update (DBusGProxy * proxy, guint id, DbusmenuClient * client) DbusmenuMenuitem * menuitem = dbusmenu_menuitem_find_id(priv->root, id); g_return_if_fail(menuitem != NULL); - /* dbusmenu_menuitem_property_set(menuitem, property, value); */ + org_freedesktop_dbusmenu_get_properties_async(proxy, id, menuitem_get_properties_cb, menuitem); return; } |