diff options
author | Ted Gould <ted@canonical.com> | 2009-01-30 12:11:32 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-30 12:11:32 -0600 |
commit | 722c621bc26aea8dc83a60097f3f8e7bea3ea68b (patch) | |
tree | 19e0f93cfffef4d83702debf61d42b4f9adb8d6c /tests | |
parent | 17bc0dab5a61d41e1a57755f7b2d1cdbe79e90da (diff) | |
parent | 21a212b200cfec762cf7405454b69410e7ba630a (diff) | |
download | libayatana-indicator-722c621bc26aea8dc83a60097f3f8e7bea3ea68b.tar.gz libayatana-indicator-722c621bc26aea8dc83a60097f3f8e7bea3ea68b.tar.bz2 libayatana-indicator-722c621bc26aea8dc83a60097f3f8e7bea3ea68b.zip |
Listener interface for signalling an indicator
Diffstat (limited to 'tests')
-rw-r--r-- | tests/im-client.c | 8 |
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; |