aboutsummaryrefslogtreecommitdiff
path: root/tests/show-hide-server.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-27 10:50:40 -0500
committerTed Gould <ted@canonical.com>2009-04-27 10:50:40 -0500
commit73e576b120f91aa42d8040af16a2310fb60d62c1 (patch)
tree20062dd5d0ff2f06f0b73e8540b57367ed439bbf /tests/show-hide-server.c
parent183d218f7c7d22da792b90c0014d44b088d91008 (diff)
parent0f174a8a4904e33f912fae70a6345a861306b474 (diff)
downloadlibayatana-indicator-73e576b120f91aa42d8040af16a2310fb60d62c1.tar.gz
libayatana-indicator-73e576b120f91aa42d8040af16a2310fb60d62c1.tar.bz2
libayatana-indicator-73e576b120f91aa42d8040af16a2310fb60d62c1.zip
Upstream Snapshot: Adding in a test suite.
Diffstat (limited to 'tests/show-hide-server.c')
-rw-r--r--tests/show-hide-server.c44
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;
-}
-