diff options
author | Ted Gould <ted@gould.cx> | 2010-08-30 14:55:47 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-30 14:55:47 -0500 |
commit | 9a852c72209e4c5c5292553a3abbc61911a27027 (patch) | |
tree | b8992b725ee2c0f96bfaa081b29c5d743554902f /src/datetime-interface.c | |
parent | b798978db017df8d08e35a38cfa1e88fe3890f90 (diff) | |
download | ayatana-indicator-datetime-9a852c72209e4c5c5292553a3abbc61911a27027.tar.gz ayatana-indicator-datetime-9a852c72209e4c5c5292553a3abbc61911a27027.tar.bz2 ayatana-indicator-datetime-9a852c72209e4c5c5292553a3abbc61911a27027.zip |
Adding in the update time signal
Diffstat (limited to 'src/datetime-interface.c')
-rw-r--r-- | src/datetime-interface.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/datetime-interface.c b/src/datetime-interface.c index a500354..d70d53a 100644 --- a/src/datetime-interface.c +++ b/src/datetime-interface.c @@ -6,6 +6,13 @@ #include "datetime-service-server.h" #include "dbus-shared.h" +enum { + UPDATE_TIME, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL] = { 0 }; + static void datetime_interface_class_init (DatetimeInterfaceClass *klass); static void datetime_interface_init (DatetimeInterface *self); static void datetime_interface_dispose (GObject *object); @@ -21,6 +28,14 @@ datetime_interface_class_init (DatetimeInterfaceClass *klass) object_class->dispose = datetime_interface_dispose; object_class->finalize = datetime_interface_finalize; + signals[UPDATE_TIME] = g_signal_new("update-time", + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (DatetimeInterfaceClass, update_time), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0, G_TYPE_NONE); + dbus_g_object_type_install_info(DATETIME_INTERFACE_TYPE, &dbus_glib__datetime_service_server_object_info); return; |