[gimp] Revert "Revert "Add a button to create a group layer to the layers dialog""



commit e2ed81e310f9536c703fd9e7264522b4cf7b6b8b
Author: Michael Natterer <mitch gimp org>
Date:   Sun Aug 23 20:27:47 2009 +0200

    Revert "Revert "Add a button to create a group layer to the layers dialog""
    
    This reverts commit b72e5a35b1e943a9b7017273a3580a11eebf18bc.

 app/widgets/gimplayertreeview.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c
index 14f828c..29fa158 100644
--- a/app/widgets/gimplayertreeview.c
+++ b/app/widgets/gimplayertreeview.c
@@ -246,6 +246,8 @@ gimp_layer_tree_view_view_iface_init (GimpContainerViewInterface *iface)
   iface->insert_item   = gimp_layer_tree_view_insert_item;
   iface->select_item   = gimp_layer_tree_view_select_item;
   iface->set_view_size = gimp_layer_tree_view_set_view_size;
+
+  iface->model_is_tree = TRUE;
 }
 
 static void
@@ -402,12 +404,17 @@ gimp_layer_tree_view_constructor (GType                  type,
   gtk_widget_hide (gimp_item_tree_view_get_edit_button (GIMP_ITEM_TREE_VIEW (layer_view)));
 
   button = gimp_editor_add_action_button (GIMP_EDITOR (layer_view), "layers",
+                                          "layers-new-group", NULL);
+  gtk_box_reorder_child (GTK_BOX (GIMP_EDITOR (layer_view)->button_box),
+                         button, 2);
+
+  button = gimp_editor_add_action_button (GIMP_EDITOR (layer_view), "layers",
                                           "layers-anchor", NULL);
   gimp_container_view_enable_dnd (GIMP_CONTAINER_VIEW (layer_view),
                                   GTK_BUTTON (button),
                                   GIMP_TYPE_LAYER);
   gtk_box_reorder_child (GTK_BOX (GIMP_EDITOR (layer_view)->button_box),
-                         button, 5);
+                         button, 6);
 
   return object;
 }



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