diff options
author | Ted Gould <ted@gould.cx> | 2010-02-11 10:36:56 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-11 10:36:56 -0600 |
commit | bbebb7a3907a59a1ef475dc9d5c8e65c1e1595d6 (patch) | |
tree | 696dbbeaeb19a90f291c4b5a0fa464cbbf39a591 /tests/test-libappindicator-status-server.c | |
parent | a94ef5f210aad3624463e8edf40cc2f0499033fa (diff) | |
parent | 14abe9ad1ff1b09526b6f0f6410c2783e6dbd501 (diff) | |
download | libayatana-appindicator-bbebb7a3907a59a1ef475dc9d5c8e65c1e1595d6.tar.gz libayatana-appindicator-bbebb7a3907a59a1ef475dc9d5c8e65c1e1595d6.tar.bz2 libayatana-appindicator-bbebb7a3907a59a1ef475dc9d5c8e65c1e1595d6.zip |
* Upstream release 0.0.13
* Changing the menu property to be a proper DBus object path
* Make object paths unique by including application IDs in them
Diffstat (limited to 'tests/test-libappindicator-status-server.c')
-rw-r--r-- | tests/test-libappindicator-status-server.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test-libappindicator-status-server.c b/tests/test-libappindicator-status-server.c index 9e58ba9..79b1759 100644 --- a/tests/test-libappindicator-status-server.c +++ b/tests/test-libappindicator-status-server.c @@ -55,7 +55,7 @@ toggle (gpointer userdata) gint main (gint argc, gchar * argv[]) { - g_type_init(); + gtk_init(&argc, &argv); g_usleep(100000); @@ -64,6 +64,12 @@ main (gint argc, gchar * argv[]) AppIndicator * ci = app_indicator_new ("my-id", "my-icon-name", APP_INDICATOR_CATEGORY_APPLICATION_STATUS); app_indicator_set_attention_icon (ci, "my-attention-icon"); + GtkMenu * menu = GTK_MENU(gtk_menu_new()); + GtkMenuItem * item = GTK_MENU_ITEM(gtk_menu_item_new_with_label("Label")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), GTK_WIDGET(item)); + + app_indicator_set_menu(ci, menu); + g_timeout_add(50, toggle, ci); mainloop = g_main_loop_new(NULL, FALSE); |