aboutsummaryrefslogtreecommitdiff
path: root/tests/im-client.c
diff options
context:
space:
mode:
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;
+}