[gimp] app: also special-case "undo-size" when generating default docs



commit 68c774daab4850b6bb88adb9ac278864f95fd89e
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 20 18:43:03 2018 +0200

    app: also special-case "undo-size" when generating default docs
    
    and hardcode it to "1g", so properties of the dist machine don't leak
    into the tarball.

 app/config/gimpconfig-dump.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/app/config/gimpconfig-dump.c b/app/config/gimpconfig-dump.c
index 2107bdd..967faba 100644
--- a/app/config/gimpconfig-dump.c
+++ b/app/config/gimpconfig-dump.c
@@ -171,6 +171,12 @@ dump_gimprc_system (GimpConfig       *rc,
           gimp_config_writer_printf (writer, "2g");
           gimp_config_writer_close (writer);
         }
+      else if (! strcmp (prop_spec->name, "undo-size"))
+        {
+          gimp_config_writer_open (writer, "undo-size");
+          gimp_config_writer_printf (writer, "1g");
+          gimp_config_writer_close (writer);
+        }
       else if (! strcmp (prop_spec->name, "mypaint-brush-path"))
         {
           gchar *path = g_strdup_printf ("@mypaint_brushes_dir@%s"
@@ -327,6 +333,14 @@ dump_gimprc_manpage (GimpConfig       *rc,
 
           success = TRUE;
         }
+      else if (! strcmp (prop_spec->name, "undo-size"))
+        {
+          gimp_config_writer_open (writer, "undo-size");
+          gimp_config_writer_printf (writer, "1g");
+          gimp_config_writer_close (writer);
+
+          success = TRUE;
+        }
       else if (! strcmp (prop_spec->name, "mypaint-brush-path"))
         {
           gchar *path = g_strdup_printf ("@mypaint_brushes_dir@%s"


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