aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-custom.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-13 15:48:42 -0500
committerTed Gould <ted@canonical.com>2009-10-13 15:48:42 -0500
commite265e46176c6c8633849b3a5d65b7f86bda47318 (patch)
tree3d3f461747a9626556cc6b2e11d280f7f1fa3c77 /src/indicator-custom.c
parent140fda5adff2a21f9c158c941456d9e1f5765832 (diff)
parentfb328a435358e26c1f2779e2bf07ddb05b60e93e (diff)
downloadlibayatana-appindicator-e265e46176c6c8633849b3a5d65b7f86bda47318.tar.gz
libayatana-appindicator-e265e46176c6c8633849b3a5d65b7f86bda47318.tar.bz2
libayatana-appindicator-e265e46176c6c8633849b3a5d65b7f86bda47318.zip
A basical build system and basic files.
Diffstat (limited to 'src/indicator-custom.c')
-rw-r--r--src/indicator-custom.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/indicator-custom.c b/src/indicator-custom.c
new file mode 100644
index 0000000..1a09a9a
--- /dev/null
+++ b/src/indicator-custom.c
@@ -0,0 +1,28 @@
+
+#include "libindicator/indicator.h"
+
+INDICATOR_SET_VERSION
+INDICATOR_SET_NAME("indicator-custom")
+
+GtkLabel *
+get_label (void)
+{
+ return NULL;
+}
+
+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;
+}