aboutsummaryrefslogtreecommitdiff
path: root/tests/im-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-30 12:10:50 -0600
committerTed Gould <ted@canonical.com>2009-01-30 12:10:50 -0600
commit21a212b200cfec762cf7405454b69410e7ba630a (patch)
tree19e0f93cfffef4d83702debf61d42b4f9adb8d6c /tests/im-client.c
parent2adf895800d7dcf96aba23a2b28c49c158dd2dc5 (diff)
downloadlibayatana-indicator-21a212b200cfec762cf7405454b69410e7ba630a.tar.gz
libayatana-indicator-21a212b200cfec762cf7405454b69410e7ba630a.tar.bz2
libayatana-indicator-21a212b200cfec762cf7405454b69410e7ba630a.zip
Adding a print message for when the indicator is signaled
Diffstat (limited to 'tests/im-client.c')
-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;