aboutsummaryrefslogtreecommitdiff
path: root/tests/im-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-02 16:11:34 -0500
committerTed Gould <ted@canonical.com>2009-04-02 16:11:34 -0500
commit155442540ae6eb95c04657c8151634e6e8803005 (patch)
tree27fb07581f8c9361bdd7c4886faa00d8b9aa305f /tests/im-client.c
parent26bfe1c6a952952d404130f783e7399cb28e496f (diff)
downloadlibayatana-indicator-155442540ae6eb95c04657c8151634e6e8803005.tar.gz
libayatana-indicator-155442540ae6eb95c04657c8151634e6e8803005.tar.bz2
libayatana-indicator-155442540ae6eb95c04657c8151634e6e8803005.zip
Adding printouts for interest changes.
Diffstat (limited to 'tests/im-client.c')
-rw-r--r--tests/im-client.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/im-client.c b/tests/im-client.c
index 1b5a86b..bf2fbb2 100644
--- a/tests/im-client.c
+++ b/tests/im-client.c
@@ -65,6 +65,18 @@ server_display (IndicateServer * server, gpointer data)
g_debug("Ah, my server has been displayed");
}
+static void
+interest_added (IndicateServer * server, IndicateInterests interest)
+{
+ g_debug("Oh, someone is interested in my for: %d", interest);
+}
+
+void
+interest_removed (IndicateServer * server, IndicateInterests interest)
+{
+ g_debug("Someone is no longer interested in my for: %d", interest);
+}
+
int
main (int argc, char ** argv)
{
@@ -74,6 +86,8 @@ main (int argc, char ** argv)
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);
+ g_signal_connect(G_OBJECT(server), INDICATE_SERVER_SIGNAL_INTEREST_ADDED, G_CALLBACK(interest_added), NULL);
+ g_signal_connect(G_OBJECT(server), INDICATE_SERVER_SIGNAL_INTEREST_REMOVED, G_CALLBACK(interest_removed), NULL);
IndicateIndicatorMessage * indicator;