diff options
author | Thomas Wood <thomas.wood@intel.com> | 2010-06-03 11:56:28 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2010-06-04 16:34:52 +0100 |
commit | 6f7d9d93640e52f622aa047c50c39b976a882fde (patch) | |
tree | 27a84e64bbb9f3cbca4952dd6c06e4c960823412 /shell | |
parent | b8d094cad7ace3b1750cd37c9332923896d36567 (diff) |
shell: don't call gtk_widget_show_all on the new panel
Don't call gtk_widget_show_all when loading a panel as there may be widgets
that the panel does not want to be visible initially.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/gnome-control-center.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c index 554f1e6da..b37ab2db2 100644 --- a/shell/gnome-control-center.c +++ b/shell/gnome-control-center.c @@ -130,14 +130,16 @@ activate_panel (GnomeControlCenter *shell, gtk_container_add (GTK_CONTAINER (box), panel); /* switch to the new panel */ - i = gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), box, NULL); - gtk_widget_show_all (box); + i = gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), box, + NULL); + gtk_widget_show (box); gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook), i); /* set the title of the window */ gtk_window_set_title (GTK_WINDOW (priv->window), name); gtk_window_set_icon_name (GTK_WINDOW (priv->window), icon_name); + gtk_widget_show (panel); return; } } |