[gimp] app: Add the GimpToolEditor to preferences



commit 4572cb9e74941330357f6872a50bca777677970d
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Jul 21 19:49:19 2009 +0200

    app: Add the GimpToolEditor to preferences
    
    Add the new GimpToolEditor to the Toolbox tab in preferences, which is
    a more natural place to have this. See bug #500930.

 app/dialogs/preferences-dialog.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index a499d3d..8c6c8a4 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -49,6 +49,7 @@
 #include "widgets/gimpprofilechooserdialog.h"
 #include "widgets/gimppropwidgets.h"
 #include "widgets/gimptemplateeditor.h"
+#include "widgets/gimptooleditor.h"
 #include "widgets/gimpwidgets-constructors.h"
 #include "widgets/gimpwidgets-utils.h"
 
@@ -1991,6 +1992,20 @@ prefs_dialog_new (Gimp       *gimp,
   g_object_unref (size_group);
   size_group = NULL;
 
+  /* Tool Order */
+  {
+    GtkWidget *tool_view;
+
+    vbox2 = prefs_frame_new (_("Tools configuration"),
+                             GTK_CONTAINER (vbox), TRUE);
+    tool_view = gimp_tool_editor_new (gimp->tool_info_list, gimp->user_context,
+                                      gimp_tools_get_default_order (gimp),
+                                      GIMP_VIEW_SIZE_SMALL, 1);
+
+    gtk_box_pack_start (GTK_BOX (vbox2), tool_view, TRUE, TRUE, 0);
+    gtk_widget_show (tool_view);
+  }
+
 
   /***********************/
   /*  Default New Image  */



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