aboutsummaryrefslogtreecommitdiff
path: root/tests/im-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-07 12:41:40 -0600
committerTed Gould <ted@canonical.com>2009-02-07 12:41:40 -0600
commitb9558054100c8e66cead50a49036bf83e7e0e2f9 (patch)
tree97830a9af4cc0b6c4b2d9ab7f8825a06ba2de918 /tests/im-client.c
parentf308079a76c6a7aed8a5fcebf6a5241330adb636 (diff)
parentaf60279179c1e3998796d3b172b1401bd9a678df (diff)
downloadlibayatana-indicator-b9558054100c8e66cead50a49036bf83e7e0e2f9.tar.gz
libayatana-indicator-b9558054100c8e66cead50a49036bf83e7e0e2f9.tar.bz2
libayatana-indicator-b9558054100c8e66cead50a49036bf83e7e0e2f9.zip
Sending the type with the signal in the listener, adding it into the tests.
Diffstat (limited to 'tests/im-client.c')
-rw-r--r--tests/im-client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/im-client.c b/tests/im-client.c
index 9e6bc77..b6e4f09 100644
--- a/tests/im-client.c
+++ b/tests/im-client.c
@@ -1,5 +1,6 @@
#include <glib.h>
+#include "libindicate/server.h"
#include "libindicate/indicator-message.h"
static void
@@ -13,6 +14,12 @@ main (int argc, char ** argv)
{
g_type_init();
+ IndicateServer * server = indicate_server_ref_default();
+ GValue value = {0};
+ g_value_init(&value, G_TYPE_STRING);
+ g_value_set_static_string(&value, "message");
+ g_object_set_property(G_OBJECT(server), "type", &value);
+
IndicateIndicatorMessage * indicator;
indicator = indicate_indicator_message_new();