diff options
author | Ted Gould <ted@canonical.com> | 2009-05-13 21:17:17 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-05-13 21:17:17 -0500 |
commit | 96546d127bd6669d7dffddb9192be8af837f93a7 (patch) | |
tree | 33c048fb38f99e73ff94dc94b7a76f9b44f04189 /libdbusmenu-glib | |
parent | d8c84214190fc0630d28a922627e686622b46d35 (diff) | |
download | libdbusmenu-96546d127bd6669d7dffddb9192be8af837f93a7.tar.gz libdbusmenu-96546d127bd6669d7dffddb9192be8af837f93a7.tar.bz2 libdbusmenu-96546d127bd6669d7dffddb9192be8af837f93a7.zip |
Connecting to the other signals coming from the server
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index b0b1157..b7ac9e0 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -77,6 +77,8 @@ static void set_property (GObject * obj, guint id, const GValue * value, GParamS static void get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec); /* Private Funcs */ static void layout_update (DBusGProxy * proxy, DbusmenuClient * client); +static void id_prop_update (DBusGProxy * proxy, guint id, gchar * property, gchar * value, DbusmenuClient * client); +static void id_update (DBusGProxy * proxy, guint id, DbusmenuClient * client); static void build_proxies (DbusmenuClient * client); static guint parse_node_get_id (xmlNodePtr node); static DbusmenuMenuitem * parse_layout_xml(xmlNodePtr node, DbusmenuMenuitem * item, DbusmenuMenuitem * parent); @@ -238,6 +240,20 @@ layout_update (DBusGProxy * proxy, DbusmenuClient * client) return; } +static void +id_prop_update (DBusGProxy * proxy, guint id, gchar * property, gchar * value, DbusmenuClient * client) +{ + + return; +} + +static void +id_update (DBusGProxy * proxy, guint id, DbusmenuClient * client) +{ + + return; +} + /* When we have a name and an object, build the two proxies and get the first version of the layout */ static void @@ -281,6 +297,12 @@ build_proxies (DbusmenuClient * client) dbus_g_proxy_add_signal(priv->menuproxy, "LayoutUpdate", G_TYPE_INVALID); dbus_g_proxy_connect_signal(priv->menuproxy, "LayoutUpdate", G_CALLBACK(layout_update), client, NULL); + dbus_g_proxy_add_signal(priv->menuproxy, "IdPropUpdate", G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID); + dbus_g_proxy_connect_signal(priv->menuproxy, "IdPropUpdate", G_CALLBACK(id_prop_update), client, NULL); + + dbus_g_proxy_add_signal(priv->menuproxy, "IdUpdate", G_TYPE_UINT, G_TYPE_INVALID); + dbus_g_proxy_connect_signal(priv->menuproxy, "IdUpdate", G_CALLBACK(id_update), client, NULL); + return; } |