diff options
author | Ted Gould <ted@canonical.com> | 2009-01-21 17:15:34 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-21 17:15:34 -0600 |
commit | 8199742023930c8702aa213c859c01f15f77f673 (patch) | |
tree | deac86394e68a42450ff80873112d10bcef10428 /tests/im-client.c | |
parent | ea69948a6faec897f74cc2323f291e1e0139db9a (diff) | |
parent | 0fc106dd6a5081d3769668249556766e15c07c71 (diff) | |
download | libayatana-indicator-8199742023930c8702aa213c859c01f15f77f673.tar.gz libayatana-indicator-8199742023930c8702aa213c859c01f15f77f673.tar.bz2 libayatana-indicator-8199742023930c8702aa213c859c01f15f77f673.zip |
Adding in a message indicator and a small test to use it.
Diffstat (limited to 'tests/im-client.c')
-rw-r--r-- | tests/im-client.c | 21 |
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; +} |