app: Simplify gimp_dockbook_init() a bit

This commit is contained in:
Martin Nordholts 2010-01-31 20:22:24 +01:00
parent 02d3874eb7
commit 523c599baa
1 changed files with 5 additions and 5 deletions

View File

@ -215,15 +215,15 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
static void
gimp_dockbook_init (GimpDockbook *dockbook)
{
GtkNotebook *notebook = GTK_NOTEBOOK (dockbook);
dockbook->p = G_TYPE_INSTANCE_GET_PRIVATE (dockbook,
GIMP_TYPE_DOCKBOOK,
GimpDockbookPrivate);
dockbook->p->dock = NULL;
dockbook->p->ui_manager = NULL;
gtk_notebook_popup_enable (GTK_NOTEBOOK (dockbook));
gtk_notebook_set_scrollable (GTK_NOTEBOOK (dockbook), TRUE);
gtk_notebook_set_show_border (GTK_NOTEBOOK (dockbook), FALSE);
gtk_notebook_popup_enable (notebook);
gtk_notebook_set_scrollable (notebook, TRUE);
gtk_notebook_set_show_border (notebook, FALSE);
gtk_drag_dest_set (GTK_WIDGET (dockbook),
0,