summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2010-06-03 11:56:28 +0100
committerThomas Wood <thomas.wood@intel.com>2010-06-04 16:34:52 +0100
commit6f7d9d93640e52f622aa047c50c39b976a882fde (patch)
tree27a84e64bbb9f3cbca4952dd6c06e4c960823412
parentb8d094cad7ace3b1750cd37c9332923896d36567 (diff)
downloadgnome-control-center-6f7d9d93640e52f622aa047c50c39b976a882fde.tar.gz
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.
-rw-r--r--panels/network/gnome-network-properties.ui1
-rw-r--r--shell/gnome-control-center.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/panels/network/gnome-network-properties.ui b/panels/network/gnome-network-properties.ui
index 4977ae7c4..5143b0432 100644
--- a/panels/network/gnome-network-properties.ui
+++ b/panels/network/gnome-network-properties.ui
@@ -18,6 +18,7 @@
<property name="orientation">vertical</property>
<child>
<object class="GtkAlignment" id="alignment1">
+ <property name="visible">True</property>
<property name="xscale">0</property>
<child>
<object class="GtkHBox" id="hbox2">
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;
}
}