diff options
author | Ted Gould <ted@canonical.com> | 2009-01-21 16:10:21 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-21 16:10:21 -0600 |
commit | 0fc106dd6a5081d3769668249556766e15c07c71 (patch) | |
tree | e1e6c9683d358025958aeb1acd3bd4b611aeae6e /tests/im-client.c | |
parent | 48697b95718bbfb3100cff9721baa26d6c504552 (diff) | |
download | libayatana-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.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; +} |