aboutsummaryrefslogtreecommitdiff
path: root/tests/dummy-indicator-simple.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-08 20:17:04 -0400
committerTed Gould <ted@canonical.com>2009-10-08 20:17:04 -0400
commit9c16e7c9708c757c46be1e96d58ab6430d729b0a (patch)
tree1705ce0e9c342459089d338c50c9fba85e7ee6a6 /tests/dummy-indicator-simple.c
parent97a4004d26cd5ebec0b25b51d4793d1df51b5dba (diff)
downloadlibayatana-indicator-9c16e7c9708c757c46be1e96d58ab6430d729b0a.tar.gz
libayatana-indicator-9c16e7c9708c757c46be1e96d58ab6430d729b0a.tar.bz2
libayatana-indicator-9c16e7c9708c757c46be1e96d58ab6430d729b0a.zip
A better dummy menu.
Diffstat (limited to 'tests/dummy-indicator-simple.c')
-rw-r--r--tests/dummy-indicator-simple.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/dummy-indicator-simple.c b/tests/dummy-indicator-simple.c
index d939141..cee4eac 100644
--- a/tests/dummy-indicator-simple.c
+++ b/tests/dummy-indicator-simple.c
@@ -19,5 +19,10 @@ get_icon (void)
GtkMenu *
get_menu (void)
{
- return GTK_MENU(gtk_menu_new());
+ GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
+ GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
+ gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
+ gtk_widget_show(GTK_WIDGET(loading_item));
+
+ return main_menu;
}