aboutsummaryrefslogtreecommitdiff
path: root/tests/dummy-indicator-simple.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-03 11:16:20 -0600
committerTed Gould <ted@canonical.com>2009-11-03 11:16:20 -0600
commit1021a835cfe8adaabb367f67585f701cd0b5f4d5 (patch)
tree758ba7cb235c3adf09bb45b226a5bc015a3379dc /tests/dummy-indicator-simple.c
parentb5f41d1c0ca30f1cf7379e754d906681ccfbe9e1 (diff)
parentb3fc7791fdf7bea9787555b63c33e0b1f67390c4 (diff)
downloadlibayatana-indicator-1021a835cfe8adaabb367f67585f701cd0b5f4d5.tar.gz
libayatana-indicator-1021a835cfe8adaabb367f67585f701cd0b5f4d5.tar.bz2
libayatana-indicator-1021a835cfe8adaabb367f67585f701cd0b5f4d5.zip
We need atleast the loader branch as that's what we want to change.
Diffstat (limited to 'tests/dummy-indicator-simple.c')
-rw-r--r--tests/dummy-indicator-simple.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/dummy-indicator-simple.c b/tests/dummy-indicator-simple.c
new file mode 100644
index 0000000..cee4eac
--- /dev/null
+++ b/tests/dummy-indicator-simple.c
@@ -0,0 +1,28 @@
+
+#include "libindicator/indicator.h"
+
+INDICATOR_SET_VERSION
+INDICATOR_SET_NAME("dummy-indicator-simple")
+
+GtkLabel *
+get_label (void)
+{
+ return GTK_LABEL(gtk_label_new("Simple Item"));
+}
+
+GtkImage *
+get_icon (void)
+{
+ return GTK_IMAGE(gtk_image_new());
+}
+
+GtkMenu *
+get_menu (void)
+{
+ 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;
+}