aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-29 09:05:09 -0600
committerTed Gould <ted@canonical.com>2009-01-29 09:05:09 -0600
commit5454aee4458482c5a55ae3fffa8a959f72129ca1 (patch)
treeb1014bf73a19d32615e3b5ce6a186e609de2fb72 /tests
parentfea68aa76b35f2d7de5127847a4f326bafccbeee (diff)
downloadlibayatana-indicator-5454aee4458482c5a55ae3fffa8a959f72129ca1.tar.gz
libayatana-indicator-5454aee4458482c5a55ae3fffa8a959f72129ca1.tar.bz2
libayatana-indicator-5454aee4458482c5a55ae3fffa8a959f72129ca1.zip
Using the defines for the signal names
Diffstat (limited to 'tests')
-rw-r--r--tests/listen-and-print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/listen-and-print.c b/tests/listen-and-print.c
index 9ad2cc8..f99c07c 100644
--- a/tests/listen-and-print.c
+++ b/tests/listen-and-print.c
@@ -39,11 +39,11 @@ main (int argc, char ** argv)
IndicateListener * listener = indicate_listener_new();
- g_signal_connect(listener, "indicator-added", G_CALLBACK(indicator_added), NULL);
- g_signal_connect(listener, "indicator-removed", G_CALLBACK(indicator_removed), NULL);
- g_signal_connect(listener, "indicator-modified", G_CALLBACK(indicator_modified), NULL);
- g_signal_connect(listener, "server-added", G_CALLBACK(server_added), NULL);
- g_signal_connect(listener, "server-removed", G_CALLBACK(server_removed), NULL);
+ g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_INDICATOR_ADDED, G_CALLBACK(indicator_added), NULL);
+ g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_INDICATOR_REMOVED, G_CALLBACK(indicator_removed), NULL);
+ g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_INDICATOR_MODIFIED, G_CALLBACK(indicator_modified), NULL);
+ g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_SERVER_ADDED, G_CALLBACK(server_added), NULL);
+ g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_SERVER_REMOVED, G_CALLBACK(server_removed), NULL);
g_main_loop_run(g_main_loop_new(NULL, FALSE));