diff options
author | Ted Gould <ted@gould.cx> | 2011-01-14 13:23:07 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-01-14 13:23:07 -0600 |
commit | 39268f3a9830cb76aaf644d540dfe771fde4eebf (patch) | |
tree | 5e193d288aa30ae1b0fa4905c01cb962b90b279f | |
parent | 490cde29b6d70c7abad6b6ff90609e64fd2af409 (diff) | |
download | ayatana-indicator-messages-39268f3a9830cb76aaf644d540dfe771fde4eebf.tar.gz ayatana-indicator-messages-39268f3a9830cb76aaf644d540dfe771fde4eebf.tar.bz2 ayatana-indicator-messages-39268f3a9830cb76aaf644d540dfe771fde4eebf.zip |
Setting up the vtable and making it connect in
-rw-r--r-- | src/messages-service-dbus.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/messages-service-dbus.c b/src/messages-service-dbus.c index aeda625..e333772 100644 --- a/src/messages-service-dbus.c +++ b/src/messages-service-dbus.c @@ -52,6 +52,14 @@ static void message_service_dbus_class_init (MessageServiceDbusClass *klass); static void message_service_dbus_init (MessageServiceDbus *self); static void message_service_dbus_dispose (GObject *object); static void message_service_dbus_finalize (GObject *object); +static void bus_method_call (GDBusConnection * connection, + const gchar * sender, + const gchar * path, + const gchar * interface, + const gchar * method, + GVariant * params, + GDBusMethodInvocation * invocation, + gpointer user_data); static void _messages_service_server_watch (void); static gboolean _messages_service_server_attention_requested (MessageServiceDbus * self, gboolean * dot, GError ** error); @@ -59,6 +67,11 @@ static gboolean _messages_service_server_icon_shown (MessageServiceDbus * self, static GDBusNodeInfo * bus_node_info = NULL; static GDBusInterfaceInfo * bus_interface_info = NULL; +static const GDBusInterfaceVTable bus_interface_table = { + method_call: bus_method_call, + get_property: NULL, /* No properties */ + set_property: NULL /* No properties */ +}; G_DEFINE_TYPE (MessageServiceDbus, message_service_dbus, G_TYPE_OBJECT); @@ -125,7 +138,7 @@ connection_cb (GObject * object, GAsyncResult * res, gpointer user_data) g_dbus_connection_register_object(connection, INDICATOR_MESSAGES_DBUS_SERVICE_OBJECT, bus_interface_info, - bus_vtable, + &bus_interface_table, user_data, NULL, /* destroy */ &error); |