Bug 590638 – Changing palettes from list to grid view loses "locked to dock" status

Transfer the 'locked' state to the newly created dockable in
dockable_toggle_view_cmd_callback().
This commit is contained in:
Sven Neumann 2009-08-03 22:14:49 +02:00
parent 3e1c13bc96
commit 45529d4886
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ dockable_toggle_view_cmd_callback (GtkAction *action,
GimpDocked *new;
gboolean show;
gimp_dockable_set_locked (GIMP_DOCKABLE (new_dockable),
gimp_dockable_is_locked (dockable));
old = GIMP_DOCKED (gtk_bin_get_child (GTK_BIN (dockable)));
new = GIMP_DOCKED (gtk_bin_get_child (GTK_BIN (new_dockable)));