plug-ins: GimpProcBrowserDialog with "use-header-bar" in Python-console.

We have code for this in gimp_proc_browser_dialog_new(), but it cannot
be moved in the object init() because this is a construction-time only
property. So this needs to be passed from the python call too.
This commit is contained in:
Jehan 2019-08-05 15:16:32 +02:00
parent a76c9305bb
commit 0af32861e7

View file

@ -170,7 +170,7 @@ def run(procedure, args, data):
def browse(self):
if not self.browse_dlg:
dlg = Gimp.ProcBrowserDialog()
dlg = Gimp.ProcBrowserDialog(use_header_bar=True)
Gtk.Window.set_title(dlg, _("Python Procedure Browser"))
Gtk.Window.set_role(dlg, PROC_NAME)
Gtk.Dialog.add_button(dlg, "Apply", Gtk.ResponseType.APPLY)