app: show the added tab in gimp_dockbook_page_added()

and remove all other calls to gtk_widget_show(child). We used to do
this in gimp_dockbook_add() before (which is gone), and missed to add
a few show(). Since we have no invisible pages, simply show them
gemerically.
This commit is contained in:
Michael Natterer 2018-06-17 15:14:15 +02:00
parent 552a60b8bf
commit 697ff4b423
4 changed files with 1 additions and 7 deletions

View File

@ -564,8 +564,6 @@ gimp_dialog_factory_dialog_new_internal (GimpDialogFactory *factory,
{
gtk_notebook_append_page (GTK_NOTEBOOK (dockbook),
dialog, NULL);
gtk_widget_show (dialog);
gtk_widget_show (dock);
}
else

View File

@ -581,14 +581,11 @@ gimp_dockable_detach (GimpDockable *dockable)
gimp_dock_add_book (GIMP_DOCK (dock), GIMP_DOCKBOOK (dockbook), 0);
g_object_ref (dockable);
gtk_container_remove (GTK_CONTAINER (dockable->p->dockbook),
GTK_WIDGET (dockable));
gtk_notebook_append_page (GTK_NOTEBOOK (dockbook),
GTK_WIDGET (dockable), NULL);
gtk_widget_show (GTK_WIDGET (dockable));
g_object_unref (dockable);
gtk_widget_show (GTK_WIDGET (dock_window));

View File

@ -404,6 +404,7 @@ gimp_dockbook_page_added (GtkNotebook *notebook,
G_CALLBACK (gimp_dockbook_tab_locked_notify),
dockbook);
gtk_widget_show (child);
gtk_notebook_set_current_page (notebook, page_num);
g_signal_emit (dockbook, dockbook_signals[DOCKABLE_ADDED], 0, dockable);

View File

@ -267,8 +267,6 @@ gimp_session_info_book_restore (GimpSessionInfoBook *info,
{
gtk_notebook_append_page (GTK_NOTEBOOK (dockbook),
GTK_WIDGET (dockable), NULL);
gtk_widget_show (GTK_WIDGET (dockable));
n_dockables++;
}
}