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.
This commit is contained in:
Thomas Wood 2010-06-03 11:56:28 +01:00
parent b8d094cad7
commit 6f7d9d9364
2 changed files with 5 additions and 2 deletions

View file

@ -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">

View file

@ -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;
}
}