From ca8c83d9d7b64bbffbda3292fe2296d6dada32f6 Mon Sep 17 00:00:00 2001 From: Veerasamy Sevagen Date: Tue, 12 Feb 2019 15:09:19 +0000 Subject: [PATCH 1/3] Setting the FileChooserbutton to a fixed width. --- plug-ins/pygimp/gimpui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plug-ins/pygimp/gimpui.py b/plug-ins/pygimp/gimpui.py index 76ee58472fd..ab0dba20426 100644 --- a/plug-ins/pygimp/gimpui.py +++ b/plug-ins/pygimp/gimpui.py @@ -221,6 +221,7 @@ class FontSelector(FontSelectButton): class FileSelector(gtk.FileChooserButton): def __init__(self, default=""): gtk.FileChooserButton.__init__(self, _("Python-Fu File Selection")) + set.FileChooserButton.config( height=100, width=100) if default: self.set_filename(default) def get_value(self): -- GitLab From d00d6420541ad8342ed9ed020fa7963cf96f835b Mon Sep 17 00:00:00 2001 From: Veerasamy Sevagen Date: Wed, 13 Feb 2019 11:53:40 +0000 Subject: [PATCH 2/3] Update plug-ins/pygimp/gimpfu.py --- plug-ins/pygimp/gimpfu.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py index 3be874de057..13a95a7f62a 100644 --- a/plug-ins/pygimp/gimpfu.py +++ b/plug-ins/pygimp/gimpfu.py @@ -606,6 +606,9 @@ def _interact(proc_name, start_params): image.set_from_stock(gtk.STOCK_FILE, gtk.ICON_SIZE_BUTTON) self.button = gtk.Button() self.button.set_image(image) + self.expander = gtk.Expander() + self.expander.add(self.button) + self.expander.set_expanded(False) box.pack_start(self.entry) box.pack_start(self.button) self.button.connect("clicked", self.pick_file) @@ -613,6 +616,7 @@ def _interact(proc_name, start_params): self.entry.set_text(default) def show(self): + self.expander.show() super(FilenameSelector, self).show() self.button.show() self.entry.show() -- GitLab From 807309f03a19791faea2cf7889484c9e8e862c36 Mon Sep 17 00:00:00 2001 From: Veerasamy Sevagen Date: Wed, 13 Feb 2019 12:21:17 +0000 Subject: [PATCH 3/3] Update plug-ins/pygimp/gimpui.py --- plug-ins/pygimp/gimpui.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plug-ins/pygimp/gimpui.py b/plug-ins/pygimp/gimpui.py index ab0dba20426..76ee58472fd 100644 --- a/plug-ins/pygimp/gimpui.py +++ b/plug-ins/pygimp/gimpui.py @@ -221,7 +221,6 @@ class FontSelector(FontSelectButton): class FileSelector(gtk.FileChooserButton): def __init__(self, default=""): gtk.FileChooserButton.__init__(self, _("Python-Fu File Selection")) - set.FileChooserButton.config( height=100, width=100) if default: self.set_filename(default) def get_value(self): -- GitLab