[gimp] Bug 735774: Zarro Boogs found for PF_FILENAME - Ambiguous Entry Dialog



commit eb287169c453bf9796beb567a3338b6c5f9d7665
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sun Jul 31 11:28:57 2016 +0200

    Bug 735774: Zarro Boogs found for PF_FILENAME - Ambiguous Entry Dialog
    
    Before commit 20523c61aca4
    PF_FILE used to open a "open file" filechooser dialog.
    That commit, while adding the ability to open
    a "save dialog" filechooser dialog using PF_FILENAME,
    changed the behavior of the existing gimpfu PF_FILE type.
    
    Restore the previous behavior and update the
    built-in plug-ins using a save dialog to the new
    PF_FILENAME.

 plug-ins/pygimp/gimpfu.py                         |    2 +-
 plug-ins/pygimp/plug-ins/gradients-save-as-css.py |    2 +-
 plug-ins/pygimp/plug-ins/histogram-export.py      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py
index f6ae32e..9a1f070 100644
--- a/plug-ins/pygimp/gimpfu.py
+++ b/plug-ins/pygimp/gimpfu.py
@@ -589,7 +589,7 @@ def _interact(proc_name, start_params):
             if default == "/": default = ""
             return DirnameSelector(default)
         else:
-            return FilenameSelector(default, title=title)
+            return FilenameSelector(default, title=title, save_mode=False)
 
     class FilenameSelector(gtk.HBox):
         #gimpfu.FileChooserButton
diff --git a/plug-ins/pygimp/plug-ins/gradients-save-as-css.py 
b/plug-ins/pygimp/plug-ins/gradients-save-as-css.py
index 5f16348..4ccee81 100755
--- a/plug-ins/pygimp/plug-ins/gradients-save-as-css.py
+++ b/plug-ins/pygimp/plug-ins/gradients-save-as-css.py
@@ -94,7 +94,7 @@ register(
         "",
         [
           (PF_GRADIENT, "gradient", N_("Gradient to use"),""),
-          (PF_FILE, "file_name", N_("File Name"), ""),
+          (PF_FILENAME, "file_name", N_("File Name"), ""),
         ],
         [],
         gradient_css_save,
diff --git a/plug-ins/pygimp/plug-ins/histogram-export.py b/plug-ins/pygimp/plug-ins/histogram-export.py
index 361ea72..90d7cea 100755
--- a/plug-ins/pygimp/plug-ins/histogram-export.py
+++ b/plug-ins/pygimp/plug-ins/histogram-export.py
@@ -94,7 +94,7 @@ register(
     "*",
     [(PF_IMAGE,  "img", _("_Image"), None),
      (PF_DRAWABLE, "drw", _("_Drawable"), None),
-     (PF_FILE, "filename", _("Histogram _File"), ""),
+     (PF_FILENAME, "filename", _("Histogram _File"), ""),
      (PF_FLOAT, "bucket_size", _("_Bucket Size"), 1.0),
      (PF_BOOL, "sample_average", _("Sample _Average"), False),
      (PF_RADIO, "output_format", _("Output format"), "pixel count",


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