diff options
author | Ted Gould <ted@canonical.com> | 2009-02-07 12:21:32 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-07 12:21:32 -0600 |
commit | 455dbe3cbe2a665139b7e1e19f82fbaad9768a49 (patch) | |
tree | df32da91ee826a8dcab994a4c0a07cb76024804d /tests/im-client.c | |
parent | 603808b8d5d57363b52b1e8fa6a7dbbde46c861f (diff) | |
download | libayatana-indicator-455dbe3cbe2a665139b7e1e19f82fbaad9768a49.tar.gz libayatana-indicator-455dbe3cbe2a665139b7e1e19f82fbaad9768a49.tar.bz2 libayatana-indicator-455dbe3cbe2a665139b7e1e19f82fbaad9768a49.zip |
Setting the type of the server
Diffstat (limited to 'tests/im-client.c')
-rw-r--r-- | tests/im-client.c | 7 |
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(); |