aboutsummaryrefslogtreecommitdiff
path: root/tests/im-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-21 16:10:21 -0600
committerTed Gould <ted@canonical.com>2009-01-21 16:10:21 -0600
commit0fc106dd6a5081d3769668249556766e15c07c71 (patch)
treee1e6c9683d358025958aeb1acd3bd4b611aeae6e /tests/im-client.c
parent48697b95718bbfb3100cff9721baa26d6c504552 (diff)
downloadlibayatana-indicator-0fc106dd6a5081d3769668249556766e15c07c71.tar.gz
libayatana-indicator-0fc106dd6a5081d3769668249556766e15c07c71.tar.bz2
libayatana-indicator-0fc106dd6a5081d3769668249556766e15c07c71.zip
Adding in the im-client test and fixing a couple of bugs it found
Diffstat (limited to 'tests/im-client.c')
-rw-r--r--tests/im-client.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/im-client.c b/tests/im-client.c
new file mode 100644
index 0000000..cdf3484
--- /dev/null
+++ b/tests/im-client.c
@@ -0,0 +1,21 @@
+
+#include <glib.h>
+#include "libindicate/indicator-message.h"
+
+int
+main (int argc, char ** argv)
+{
+ g_type_init();
+
+ IndicateIndicatorMessage * indicator;
+
+ indicator = indicate_indicator_message_new();
+ indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "subtype", "im");
+ indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "sender", "Ted Gould");
+ indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "time", "11:11");
+ indicate_indicator_show(indicator);
+
+ g_main_loop_run(g_main_loop_new(NULL, FALSE));
+
+ return 0;
+}