[gimp] Bug 765040 - GIMP not remembering the order of dockable dialogs.



commit 5f19ef41c967d23388dc7a12317605d5469d1e6c
Author: Jehan <jehan girinstud io>
Date:   Sat Jun 11 16:51:21 2016 +0200

    Bug 765040 - GIMP not remembering the order of dockable dialogs.
    
    Docks position is relevant when saving a session, so we should not
    simply append it to the end of the docks list when we move a dock.

 app/widgets/gimpdockcolumns.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpdockcolumns.c b/app/widgets/gimpdockcolumns.c
index 13ebe59..e6530ed 100644
--- a/app/widgets/gimpdockcolumns.c
+++ b/app/widgets/gimpdockcolumns.c
@@ -337,7 +337,7 @@ gimp_dock_columns_add_dock (GimpDockColumns *dock_columns,
 
   GIMP_LOG (DND, "Adding GimpDock %p to GimpDockColumns %p", dock, dock_columns);
 
-  dock_columns->p->docks = g_list_append (dock_columns->p->docks, dock);
+  dock_columns->p->docks = g_list_insert (dock_columns->p->docks, dock, index);
 
   gimp_dock_update_with_context (dock, dock_columns->p->context);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]