mirror of https://github.com/GNOME/gimp.git
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:
parent
26fbeebf02
commit
5b74dd27ef
|
@ -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);
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue