diff options
author | Ted Gould <ted@canonical.com> | 2009-04-27 10:42:39 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-04-27 10:42:39 -0500 |
commit | d2d0c7aac15b44ca5bc876be3a402e63284512b6 (patch) | |
tree | 06294e6bfe4a1e4c2f69653302599aea70e83e3f /tests/show-hide-server.c | |
parent | c292100a3d95aac71c7cb943cbd3df9a204c0a70 (diff) | |
parent | 5899a3f246b8eeac2c820013a27cde0301ad69ee (diff) | |
download | libayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.tar.gz libayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.tar.bz2 libayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.zip |
Merging in the testing branch to get some tests for this guy
Diffstat (limited to 'tests/show-hide-server.c')
-rw-r--r-- | tests/show-hide-server.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/show-hide-server.c b/tests/show-hide-server.c deleted file mode 100644 index 23c1ea1..0000000 --- a/tests/show-hide-server.c +++ /dev/null @@ -1,44 +0,0 @@ -/* From LP: #351537 */ - -#include <glib.h> -#include "libindicate/server.h" -#include "libindicate/indicator-message.h" - -gboolean hidden = TRUE; - -static gboolean -timeout_cb (gpointer data) -{ - IndicateServer * server = INDICATE_SERVER(data); - - if (hidden) { - printf("showing... "); - indicate_server_show(server); - printf("ok\n"); - hidden = FALSE; - } else { - printf("hiding... "); - indicate_server_hide(server); - printf("ok\n"); - hidden = TRUE; - } - - return TRUE; -} - - -int -main (int argc, char ** argv) -{ - g_type_init(); - - IndicateServer * server = indicate_server_ref_default(); - indicate_server_set_type(server, "message.im"); - indicate_server_set_desktop_file(server, "/usr/share/applications/empathy.desktop"); - g_timeout_add_seconds(1, timeout_cb, server); - - g_main_loop_run(g_main_loop_new(NULL, FALSE)); - - return 0; -} - |