diff options
author | Ted Gould <ted@canonical.com> | 2009-06-08 14:07:53 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-06-08 14:07:53 -0500 |
commit | aaee0018ecf3322a4e047f57e41cfffdb1582d11 (patch) | |
tree | e371e9c250aa7ee5317841923f1058daf96ec783 /src | |
parent | cfbfb0f5d246fad7881538bfc617e06e9136c8e5 (diff) | |
parent | f5cec7c3e6dc602772642bd390ec632450709145 (diff) | |
download | ayatana-indicator-session-aaee0018ecf3322a4e047f57e41cfffdb1582d11.tar.gz ayatana-indicator-session-aaee0018ecf3322a4e047f57e41cfffdb1582d11.tar.bz2 ayatana-indicator-session-aaee0018ecf3322a4e047f57e41cfffdb1582d11.zip |
Merging from trunk. Splitting out packaging and getting all the files.
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-fusa.c | 26 |
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; +} + |