diff options
author | Ted Gould <ted@canonical.com> | 2009-02-15 22:04:29 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-15 22:04:29 -0600 |
commit | 55b934300c52e7ff3f59b7a7004f4eb6df647f95 (patch) | |
tree | 7370892c654fb01d181373497c20933efe96e000 /tests | |
parent | 50a37ef395eb670c44582b9fcdeac650ef8d11fe (diff) | |
parent | 975000d7ab53c8f58468f0f648f991892e092833 (diff) | |
download | libayatana-indicator-55b934300c52e7ff3f59b7a7004f4eb6df647f95.tar.gz libayatana-indicator-55b934300c52e7ff3f59b7a7004f4eb6df647f95.tar.bz2 libayatana-indicator-55b934300c52e7ff3f59b7a7004f4eb6df647f95.zip |
Merging in from the 'upstream' branch. Changes include the addition
of a server signal for the NULL indicator. And a warning fix for
icons.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/im-client.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/im-client.c b/tests/im-client.c index 3419a9d..1b5a86b 100644 --- a/tests/im-client.c +++ b/tests/im-client.c @@ -56,7 +56,13 @@ timeout_cb (gpointer data) static void display (IndicateIndicator * indicator, gpointer data) { - g_debug("Ah, I've been displayed"); + g_debug("Ah, my indicator has been displayed"); +} + +static void +server_display (IndicateServer * server, gpointer data) +{ + g_debug("Ah, my server has been displayed"); } int @@ -67,6 +73,7 @@ main (int argc, char ** argv) IndicateServer * server = indicate_server_ref_default(); indicate_server_set_type(server, "message.im"); indicate_server_set_desktop_file(server, "/usr/share/applications/empathy.desktop"); + g_signal_connect(G_OBJECT(server), INDICATE_SERVER_SIGNAL_SERVER_DISPLAY, G_CALLBACK(server_display), NULL); IndicateIndicatorMessage * indicator; |