aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-11 20:32:31 -0600
committerTed Gould <ted@canonical.com>2009-02-11 20:32:31 -0600
commitfe7b7c483347e7f6437978716e501de43c12a346 (patch)
tree4fd4b828fc2b91f4d72c9780d660001fa50f54d1 /tests
parent7e01f3aa1892aef74ac2d0a2323ffd277d29f35d (diff)
parent2f2fdfe9a4e312dde374e000a02dd61e8a40c608 (diff)
downloadlibayatana-indicator-fe7b7c483347e7f6437978716e501de43c12a346.tar.gz
libayatana-indicator-fe7b7c483347e7f6437978716e501de43c12a346.tar.bz2
libayatana-indicator-fe7b7c483347e7f6437978716e501de43c12a346.zip
Merging in the changes to make it so that properties work right, get
handled properly by the listener and have convience functions. Also lots of little important cleanups.
Diffstat (limited to 'tests')
-rw-r--r--tests/im-client.c2
-rw-r--r--tests/listen-and-print.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/im-client.c b/tests/im-client.c
index 53aa980..db04b8e 100644
--- a/tests/im-client.c
+++ b/tests/im-client.c
@@ -37,7 +37,7 @@ main (int argc, char ** argv)
IndicateServer * server = indicate_server_ref_default();
GValue value = {0};
g_value_init(&value, G_TYPE_STRING);
- g_value_set_static_string(&value, "message");
+ g_value_set_static_string(&value, "message.im");
g_object_set_property(G_OBJECT(server), "type", &value);
IndicateIndicatorMessage * indicator;
diff --git a/tests/listen-and-print.c b/tests/listen-and-print.c
index a65b9fb..6e1104d 100644
--- a/tests/listen-and-print.c
+++ b/tests/listen-and-print.c
@@ -41,15 +41,15 @@ indicator_modified (IndicateListener * listener, IndicateListenerServer * server
}
static void
-server_added (IndicateListener * listener, IndicateListenerServer * server, gpointer data)
+server_added (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
- g_debug("Indicator Server Added: %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server));
+ g_debug("Indicator Server Added: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), type);
}
static void
-server_removed (IndicateListener * listener, IndicateListenerServer * server, gpointer data)
+server_removed (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
- g_debug("Indicator Server Removed: %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server));
+ g_debug("Indicator Server Removed: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), type);
}
int
@@ -57,7 +57,7 @@ main (int argc, char ** argv)
{
g_type_init();
- IndicateListener * listener = indicate_listener_new();
+ IndicateListener * listener = indicate_listener_ref_default();
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);