aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-19 00:58:31 +0200
committerTed Gould <ted@canonical.com>2009-05-19 00:58:31 +0200
commit89b87f5b44e9abed7dc71a7cf81c9846a4d3bd1f (patch)
tree70fa47eadd3353200f1280d7578ae5d6b0f93753 /libdbusmenu-glib
parent7c4cecd7765939a9f12c77a6a5117d55c1d329c0 (diff)
downloadlibdbusmenu-89b87f5b44e9abed7dc71a7cf81c9846a4d3bd1f.tar.gz
libdbusmenu-89b87f5b44e9abed7dc71a7cf81c9846a4d3bd1f.tar.bz2
libdbusmenu-89b87f5b44e9abed7dc71a7cf81c9846a4d3bd1f.zip
Recycle the server's marshaller and register it with DBus as we don't have one for IdPropUpdate. The server and the client can use the same one.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index eb54c12..8960393 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -35,6 +35,7 @@ License version 3 and version 2.1 along with this program. If not, see
#include "client.h"
#include "dbusmenu-client.h"
+#include "server-marshal.h"
/* Properties */
enum {
@@ -313,6 +314,7 @@ 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_object_register_marshaller(_dbusmenu_server_marshal_VOID__UINT_STRING_STRING, G_TYPE_NONE, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID);
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);