aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/im-client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/im-client.c b/tests/im-client.c
index 43635f0..9e6bc77 100644
--- a/tests/im-client.c
+++ b/tests/im-client.c
@@ -2,6 +2,12 @@
#include <glib.h>
#include "libindicate/indicator-message.h"
+static void
+display (IndicateIndicator * indicator, gpointer data)
+{
+ g_debug("Ah, I've been displayed");
+}
+
int
main (int argc, char ** argv)
{
@@ -17,6 +23,8 @@ main (int argc, char ** argv)
indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "time", "11:12");
+ g_signal_connect(G_OBJECT(indicator), INDICATE_INDICATOR_SIGNAL_DISPLAY, G_CALLBACK(display), NULL);
+
g_main_loop_run(g_main_loop_new(NULL, FALSE));
return 0;