From 21a212b200cfec762cf7405454b69410e7ba630a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 30 Jan 2009 12:10:50 -0600 Subject: Adding a print message for when the indicator is signaled --- tests/im-client.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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 #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; -- cgit v1.2.3