Commit 078c3c8c authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

always set the current page of dockbooks, also if it's the first one.

2006-01-14  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsessioninfo.c (gimp_session_info_restore): always
	set the current page of dockbooks, also if it's the first one.
parent 5bab33a9
2006-01-14 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpsessioninfo.c (gimp_session_info_restore): always
set the current page of dockbooks, also if it's the first one.
2006-01-12 Sven Neumann <sven@gimp.org>
* plug-ins/common/flarefx.c: renamed to "Lens Flare", don't use
......
......@@ -789,13 +789,16 @@ gimp_session_info_restore (GimpSessionInfo *info,
GIMP_DOCKABLE (dockable), -1);
}
if ((book_info->current_page > 0) &&
(book_info->current_page <
gtk_notebook_get_n_pages (GTK_NOTEBOOK (dockbook))))
if (book_info->current_page <
gtk_notebook_get_n_pages (GTK_NOTEBOOK (dockbook)))
{
gtk_notebook_set_current_page (GTK_NOTEBOOK (dockbook),
book_info->current_page);
}
else
{
gtk_notebook_set_current_page (GTK_NOTEBOOK (dockbook), 0);
}
}
for (books = info->books; books; books = g_list_next (books))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment