aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 09:30:16 -0500
committerTed Gould <ted@canonical.com>2009-08-26 09:30:16 -0500
commit964062bdeb9d3e9ca8db4bb0466440523c323f39 (patch)
treec8d1b5d06142d0d73d870b0e6dd1208f276e0a30
parent4b1b97c765557715451b16aa9c409e1539050b9f (diff)
downloadayatana-indicator-messages-964062bdeb9d3e9ca8db4bb0466440523c323f39.tar.gz
ayatana-indicator-messages-964062bdeb9d3e9ca8db4bb0466440523c323f39.tar.bz2
ayatana-indicator-messages-964062bdeb9d3e9ca8db4bb0466440523c323f39.zip
Making some signal lovin'
-rw-r--r--src/messages-service-dbus.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/messages-service-dbus.c b/src/messages-service-dbus.c
index 8d0d5e7..38f2894 100644
--- a/src/messages-service-dbus.c
+++ b/src/messages-service-dbus.c
@@ -6,6 +6,14 @@
#include "messages-service-dbus.h"
#include "dbus-data.h"
+enum {
+ ATTENTION_CHANGED,
+ ICON_CHANGED,
+ LAST_SIGNAL
+};
+
+static guint signals[LAST_SIGNAL] = { 0 };
+
typedef struct _MessageServiceDbusPrivate MessageServiceDbusPrivate;
struct _MessageServiceDbusPrivate
@@ -40,6 +48,23 @@ message_service_dbus_class_init (MessageServiceDbusClass *klass)
object_class->dispose = message_service_dbus_dispose;
object_class->finalize = message_service_dbus_finalize;
+ signals[ATTENTION_CHANGED] = g_signal_new(MESSAGE_SERVICE_DBUS_SIGNAL_ATTENTION_CHANGED,
+ G_TYPE_FROM_CLASS(klass),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (MessageServiceDbusClass, attention_changed),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__BOOLEAN,
+ G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
+
+ signals[ICON_CHANGED] = g_signal_new(MESSAGE_SERVICE_DBUS_SIGNAL_ICON_CHANGED,
+ G_TYPE_FROM_CLASS(klass),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (MessageServiceDbusClass, icon_changed),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__BOOLEAN,
+ G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
+
+
dbus_g_object_type_install_info(MESSAGE_SERVICE_DBUS_TYPE, &dbus_glib__messages_service_server_object_info);
return;