[gimp] app: add a "Filter Dialogs" section to prefs -> dialog defaults



commit 14a054e980882bbe7c8fef2d6b422fb4d54e791f
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 1 14:15:13 2018 +0200

    app: add a "Filter Dialogs" section to prefs -> dialog defaults

 app/dialogs/preferences-dialog.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index e1a3552..dbea19b 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -476,6 +476,9 @@ prefs_dialog_defaults_reset (GtkWidget *widget,
         gimp_config_reset_property (config, pspec->name);
     }
 
+  gimp_config_reset_property (config, "filter-tool-max-recent");
+  gimp_config_reset_property (config, "filter-tool-show-color-options");
+
   g_object_thaw_notify (config);
 
   g_free (pspecs);
@@ -2163,6 +2166,19 @@ prefs_dialog_new (Gimp       *gimp,
                           _("Enable dithering of text layers"),
                           GTK_BOX (vbox2));
 
+  /*  Filter Dialogs  */
+  vbox2 = prefs_frame_new (_("Filter Dialogs"),
+                           GTK_CONTAINER (vbox), FALSE);
+  table = prefs_table_new (1, GTK_CONTAINER (vbox2));
+
+  prefs_spin_button_add (object, "filter-tool-max-recent", 1.0, 8.0, 0,
+                         _("Keep recent settings:"),
+                         GTK_TABLE (table), 1, size_group);
+
+  button = prefs_check_button_add (object, "filter-tool-show-color-options",
+                                   _("Show advanced color options"),
+                                   GTK_BOX (vbox2));
+
   /*  Canvas Size Dialog  */
   vbox2 = prefs_frame_new (_("Canvas Size Dialog"),
                            GTK_CONTAINER (vbox), FALSE);


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