diff options
author | Ted Gould <ted@canonical.com> | 2009-08-18 11:52:09 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-18 11:52:09 -0500 |
commit | ba24704988964a1f211e82e87cbe8aca29641979 (patch) | |
tree | f2218fc755cf815cfea4249388301fcd7867297b /examples/show-hide-server.c | |
parent | 033de5525d9a2074232e9e0c745a82fd9ad07b4b (diff) | |
download | libayatana-indicator-ba24704988964a1f211e82e87cbe8aca29641979.tar.gz libayatana-indicator-ba24704988964a1f211e82e87cbe8aca29641979.tar.bz2 libayatana-indicator-ba24704988964a1f211e82e87cbe8aca29641979.zip |
Deleting everything only leaving libindicator
Diffstat (limited to 'examples/show-hide-server.c')
-rw-r--r-- | examples/show-hide-server.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/examples/show-hide-server.c b/examples/show-hide-server.c deleted file mode 100644 index 23c1ea1..0000000 --- a/examples/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; -} - |