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:
parent
b8d094cad7
commit
6f7d9d9364
2 changed files with 5 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue