aboutsummaryrefslogtreecommitdiff
path: root/tests/im-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-15 21:58:08 -0600
committerTed Gould <ted@canonical.com>2009-02-15 21:58:08 -0600
commit524e5b9804537a2a170e5d9a5c2090a3a7f49afb (patch)
tree91ed562efd82a509a11b0b7585edfa2d283176b9 /tests/im-client.c
parent3a3a6e58cfddaa0f72f71e7a01d76ac24f5e854d (diff)
downloadlibayatana-indicator-524e5b9804537a2a170e5d9a5c2090a3a7f49afb.tar.gz
libayatana-indicator-524e5b9804537a2a170e5d9a5c2090a3a7f49afb.tar.bz2
libayatana-indicator-524e5b9804537a2a170e5d9a5c2090a3a7f49afb.zip
Adding a handler for the new server display signal, and then make the
messages more clear between the two.
Diffstat (limited to 'tests/im-client.c')
-rw-r--r--tests/im-client.c9
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;