aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-fusa.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-08 14:05:23 -0500
committerTed Gould <ted@canonical.com>2009-06-08 14:05:23 -0500
commitf139786bfc781296cff3faf1eb6e9fdd8402695f (patch)
tree0c9966d27138ea9e03f2bb73d5726e272b5a0c55 /src/indicator-fusa.c
parentcfbfb0f5d246fad7881538bfc617e06e9136c8e5 (diff)
downloadayatana-indicator-session-f139786bfc781296cff3faf1eb6e9fdd8402695f.tar.gz
ayatana-indicator-session-f139786bfc781296cff3faf1eb6e9fdd8402695f.tar.bz2
ayatana-indicator-session-f139786bfc781296cff3faf1eb6e9fdd8402695f.zip
Heh, forgot to put that file in.
Diffstat (limited to 'src/indicator-fusa.c')
-rw-r--r--src/indicator-fusa.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/indicator-fusa.c b/src/indicator-fusa.c
new file mode 100644
index 0000000..21c0817
--- /dev/null
+++ b/src/indicator-fusa.c
@@ -0,0 +1,26 @@
+
+#include <gtk/gtk.h>
+
+GtkWidget *
+get_menu_item (void)
+{
+ GtkWidget * mainmenu = gtk_menu_item_new();
+
+ GtkWidget * hbox = gtk_hbox_new(FALSE, 3);
+
+ GtkWidget * label = gtk_label_new("Ted Gould");
+ gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 3);
+ gtk_widget_show(label);
+
+ GtkWidget * icon = gtk_image_new_from_icon_name("gnome-logout",
+ GTK_ICON_SIZE_MENU);
+ gtk_box_pack_start(GTK_BOX(hbox), icon, FALSE, FALSE, 0);
+ gtk_widget_show(icon);
+
+ gtk_container_add(GTK_CONTAINER(mainmenu), hbox);
+ gtk_widget_show(hbox);
+
+ gtk_widget_show(mainmenu);
+ return mainmenu;
+}
+