[gimp/gimp-2-10] app: add an "Open as Image" button to the brushes dialog



commit 4f00422bd4545b0ae42afd7373c500f557df2542
Author: Michael Natterer <mitch gimp org>
Date:   Mon Feb 11 20:51:28 2019 +0100

    app: add an "Open as Image" button to the brushes dialog
    
    It was probably forgotten to add in the first place (the patterns
    dialog also has one).
    
    (cherry picked from commit fc609d12dd7b5bd998102cb71bd0bc22fbd8f870)

 app/widgets/gimpbrushfactoryview.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/app/widgets/gimpbrushfactoryview.c b/app/widgets/gimpbrushfactoryview.c
index 8be1efd0ea..9c55b24728 100644
--- a/app/widgets/gimpbrushfactoryview.c
+++ b/app/widgets/gimpbrushfactoryview.c
@@ -35,6 +35,7 @@
 
 #include "gimpbrushfactoryview.h"
 #include "gimpcontainerview.h"
+#include "gimpeditor.h"
 #include "gimpmenufactory.h"
 #include "gimpspinscale.h"
 #include "gimpviewrenderer.h"
@@ -151,6 +152,10 @@ gimp_brush_factory_view_new (GimpViewType     view_type,
 
   editor = GIMP_CONTAINER_EDITOR (factory_view);
 
+  gimp_editor_add_action_button (GIMP_EDITOR (editor->view),
+                                 "brushes", "brushes-open-as-image",
+                                 NULL);
+
   gtk_box_pack_end (GTK_BOX (editor->view), factory_view->spacing_scale,
                     FALSE, FALSE, 0);
   gtk_widget_show (factory_view->spacing_scale);


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