Commit eb287169 authored by Massimo Valentini's avatar Massimo Valentini

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

Before commit 20523c61
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
parent ce2e9513
......@@ -589,7 +589,7 @@ def _interact(proc_name, start_params):
if default == "/": default = ""
return DirnameSelector(default)
return FilenameSelector(default, title=title)
return FilenameSelector(default, title=title, save_mode=False)
class FilenameSelector(gtk.HBox):
......@@ -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"), ""),
......@@ -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",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment