[gnome-panel/wip/3.0-freeze-break: 31/32] panel: Do not call gtk_widget_show_all() on internal applets
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/3.0-freeze-break: 31/32] panel: Do not call gtk_widget_show_all() on internal applets
- Date: Thu, 24 Mar 2011 17:55:16 +0000 (UTC)
commit 1299bc43ef26e2c77522d99cd789915181a9f9e4
Author: Vincent Untz <vuntz gnome org>
Date: Thu Mar 24 14:29:37 2011 +0100
panel: Do not call gtk_widget_show_all() on internal applets
Some applets might want to hide widgets by default.
This fixes the visibility on startup of lock/logout/shutdown in the
menubar when they are locked down.
gnome-panel/applet.c | 2 +-
gnome-panel/panel-menu-bar.c | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/applet.c b/gnome-panel/applet.c
index a2251c4..45926c8 100644
--- a/gnome-panel/applet.c
+++ b/gnome-panel/applet.c
@@ -1299,7 +1299,7 @@ panel_applet_register (GtkWidget *applet,
panel_applet_set_dnd_enabled (info, TRUE);
- gtk_widget_show_all (applet);
+ gtk_widget_show (applet);
orientation_change (info, panel);
size_change (info, panel);
diff --git a/gnome-panel/panel-menu-bar.c b/gnome-panel/panel-menu-bar.c
index 553a7be..772ee1b 100644
--- a/gnome-panel/panel-menu-bar.c
+++ b/gnome-panel/panel-menu-bar.c
@@ -179,14 +179,17 @@ panel_menu_bar_init (PanelMenuBar *menubar)
menubar->priv->applications_menu);
gtk_menu_shell_append (GTK_MENU_SHELL (menubar),
menubar->priv->applications_item);
+ gtk_widget_show (menubar->priv->applications_item);
menubar->priv->places_item = panel_place_menu_item_new (FALSE);
gtk_menu_shell_append (GTK_MENU_SHELL (menubar),
menubar->priv->places_item);
+ gtk_widget_show (menubar->priv->places_item);
menubar->priv->desktop_item = panel_desktop_menu_item_new (FALSE, TRUE);
gtk_menu_shell_append (GTK_MENU_SHELL (menubar),
menubar->priv->desktop_item);
+ gtk_widget_show (menubar->priv->desktop_item);
panel_menu_bar_setup_tooltip (menubar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]