~indicator-applet-developers/indicator-session/trunk.0.1

« back to all changes in this revision

Viewing changes to src/indicator-fusa.c

  • Committer: Ted Gould
  • Date: 2009-06-08 19:05:23 UTC
  • Revision ID: ted@canonical.com-20090608190523-6cqhxdxgdoyo6ms4
Heh, forgot to put that file in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include <gtk/gtk.h>
 
3
 
 
4
GtkWidget *
 
5
get_menu_item (void)
 
6
{
 
7
        GtkWidget * mainmenu = gtk_menu_item_new();
 
8
 
 
9
        GtkWidget * hbox = gtk_hbox_new(FALSE, 3);
 
10
 
 
11
        GtkWidget * label = gtk_label_new("Ted Gould");
 
12
        gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 3);
 
13
        gtk_widget_show(label);
 
14
 
 
15
        GtkWidget * icon = gtk_image_new_from_icon_name("gnome-logout",
 
16
                                                        GTK_ICON_SIZE_MENU);
 
17
        gtk_box_pack_start(GTK_BOX(hbox), icon, FALSE, FALSE, 0);
 
18
        gtk_widget_show(icon);
 
19
 
 
20
        gtk_container_add(GTK_CONTAINER(mainmenu), hbox);
 
21
        gtk_widget_show(hbox);
 
22
 
 
23
        gtk_widget_show(mainmenu);
 
24
        return mainmenu;
 
25
}
 
26