aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-30 14:58:40 -0500
committerTed Gould <ted@gould.cx>2010-08-30 14:58:40 -0500
commit48830abd993c31546bad23cc30684a537c31332c (patch)
tree3bfd427d711f2948eed78151f3b76ea6b0e71eba
parent9a852c72209e4c5c5292553a3abbc61911a27027 (diff)
downloadayatana-indicator-datetime-48830abd993c31546bad23cc30684a537c31332c.tar.gz
ayatana-indicator-datetime-48830abd993c31546bad23cc30684a537c31332c.tar.bz2
ayatana-indicator-datetime-48830abd993c31546bad23cc30684a537c31332c.zip
Adding a way to emit the signal
-rw-r--r--src/datetime-interface.c8
-rw-r--r--src/datetime-interface.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/src/datetime-interface.c b/src/datetime-interface.c
index d70d53a..246fcb3 100644
--- a/src/datetime-interface.c
+++ b/src/datetime-interface.c
@@ -67,3 +67,11 @@ datetime_interface_finalize (GObject *object)
G_OBJECT_CLASS (datetime_interface_parent_class)->finalize (object);
return;
}
+
+void
+datetime_interface_update (DatetimeInterface *self)
+{
+ g_return_if_fail(IS_DATETIME_INTERFACE(self));
+ g_signal_emit(G_OBJECT(self), signals[UPDATE_TIME], 0, TRUE);
+ return;
+}
diff --git a/src/datetime-interface.h b/src/datetime-interface.h
index f7ddcf1..c422b2a 100644
--- a/src/datetime-interface.h
+++ b/src/datetime-interface.h
@@ -26,7 +26,8 @@ struct _DatetimeInterface {
GObject parent;
};
-GType datetime_interface_get_type (void);
+GType datetime_interface_get_type (void);
+void datetime_interface_update (DatetimeInterface *self);
G_END_DECLS