diff options
author | Ted Gould <ted@canonical.com> | 2008-11-12 16:23:42 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2008-11-12 16:23:42 -0600 |
commit | 99a07ef50c0ae94dfa2290d924575dfc2f97bac7 (patch) | |
tree | 52f1ebce34d460e213d72b66cc49c8de52e6f8d0 | |
parent | dd64e6ad33202f5fc54269d287c52a7d173d21d6 (diff) | |
download | libayatana-indicator-99a07ef50c0ae94dfa2290d924575dfc2f97bac7.tar.gz libayatana-indicator-99a07ef50c0ae94dfa2290d924575dfc2f97bac7.tar.bz2 libayatana-indicator-99a07ef50c0ae94dfa2290d924575dfc2f97bac7.zip |
Switching from a label and an hbox to a menubar
-rw-r--r-- | src/applet-main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/applet-main.c b/src/applet-main.c index 98c34a0..dc24c75 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -21,14 +21,14 @@ PANEL_APPLET_BONOBO_FACTORY ("OAFIID:GNOME_IndicatorApplet_Factory", static gboolean applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) { - GtkWidget * hbox = gtk_hbox_new(FALSE, 3); - - GtkWidget * label = gtk_label_new("Test"); - gtk_box_pack_end(GTK_BOX(hbox), label, TRUE, TRUE, 0); - gtk_widget_show(label); - - gtk_container_add(GTK_CONTAINER(applet), hbox); - gtk_widget_show(hbox); + GtkWidget * menubar = gtk_menu_bar_new(); + gtk_widget_set_name (menubar, "indicator-applet-menubar"); + gtk_container_add(GTK_CONTAINER(applet), menubar); + gtk_widget_show(menubar); + + GtkWidget * item = gtk_menu_item_new_with_label("Test"); + gtk_menu_shell_append(GTK_MENU_SHELL(menubar), item); + gtk_widget_show(item); gtk_widget_show(GTK_WIDGET(applet)); return TRUE; |