app: Move window init code from GimpDock to GimpDockWindow

Move window init code common to all docks from GimpDock to
GimpDockWindow.
This commit is contained in:
Martin Nordholts 2009-09-10 22:13:21 +02:00
parent 26fbeebf02
commit 5b74dd27ef
2 changed files with 3 additions and 2 deletions

View File

@ -193,8 +193,6 @@ gimp_dock_init (GimpDock *dock)
g_free (name);
gtk_window_set_role (GTK_WINDOW (dock), "gimp-dock");
gtk_window_set_resizable (GTK_WINDOW (dock), TRUE);
gtk_window_set_focus_on_map (GTK_WINDOW (dock), FALSE);
dock->p->main_vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (dock), dock->p->main_vbox);

View File

@ -95,6 +95,9 @@ gimp_dock_window_init (GimpDockWindow *dock_window)
GIMP_TYPE_DOCK_WINDOW,
GimpDockWindowPrivate);
dock_window->p->context = NULL;
gtk_window_set_resizable (GTK_WINDOW (dock_window), TRUE);
gtk_window_set_focus_on_map (GTK_WINDOW (dock_window), FALSE);
}
static GObject *