diff options
author | Ted Gould <ted@canonical.com> | 2009-11-04 08:15:18 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-11-04 08:15:18 -0600 |
commit | 3d93d5a2a88e93e739c67cdf8a3ed60bf394d58a (patch) | |
tree | 44e454ab72038695f5b91cd826ba867b23c3a7a0 /tests/dummy-indicator-simple.c | |
parent | d9dc7707402a979e3d23d5afc2fcd18ce57f0b54 (diff) | |
parent | 61e1ae1b8072ae134487dc66537daefbef477199 (diff) | |
download | libayatana-indicator-3d93d5a2a88e93e739c67cdf8a3ed60bf394d58a.tar.gz libayatana-indicator-3d93d5a2a88e93e739c67cdf8a3ed60bf394d58a.tar.bz2 libayatana-indicator-3d93d5a2a88e93e739c67cdf8a3ed60bf394d58a.zip |
* Adding in service management code.
* debian/control: Adding a target for libindicator0
* Adding libindicator0.install and libindicator-dev.install
Diffstat (limited to 'tests/dummy-indicator-simple.c')
-rw-r--r-- | tests/dummy-indicator-simple.c | 28 |
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; +} |