Commit d257c7ba authored by Michael Natterer's avatar Michael Natterer 😴

plug-ins: remove second parameter of gimp_ui_init() in all non-C plug-ins

parent 81cbc3ed
Pipeline #117778 passed with stages
in 13 minutes and 14 seconds
......@@ -71,7 +71,7 @@ var Goat = GObject.registerClass({
/* TODO: localization. */
if (run_mode == Gimp.RunMode.INTERACTIVE) {
Gimp.ui_init("goat-exercise-gjs", false);
Gimp.ui_init("goat-exercise-gjs");
/* TODO: help function and ID. */
let dialog = new Gimp.Dialog({
title: "Exercise a goat (JavaScript)",
......
......@@ -39,7 +39,7 @@ function run(procedure, run_mode, image, drawable, args, run_data)
-- Not sure why run_mode has become a string instead of testing
-- against Gimp.RunMode.INTERACTIVE.
if run_mode == "INTERACTIVE" then
Gimp.ui_init("goat-exercise-lua", false);
Gimp.ui_init("goat-exercise-lua");
local dialog = Gimp.Dialog {
title = "Exercise a goat (Lua)",
role = "goat-exercise-Lua",
......
......@@ -61,7 +61,7 @@ class Goat (Gimp.PlugIn):
gi.require_version('Gdk', '3.0')
from gi.repository import Gdk
Gimp.ui_init("palette-offset.py", False)
Gimp.ui_init("palette-offset.py")
dialog = Gimp.Dialog(use_header_bar=True,
title=_("Exercise a goat (Python 3)"),
......
......@@ -74,7 +74,7 @@ def gradient_css_save(procedure, args, data):
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
Gimp.ui_init ("gradients-save-as-css.py", False)
Gimp.ui_init ("gradients-save-as-css.py")
use_header_bar = Gtk.Settings.get_default().get_property("gtk-dialogs-use-header")
dialog = Gtk.FileChooserDialog(use_header_bar=use_header_bar,
......
......@@ -132,7 +132,7 @@ class PaletteOffset (Gimp.PlugIn):
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
Gimp.ui_init ("palette-offset.py", False)
Gimp.ui_init ("palette-offset.py")
use_header_bar = Gtk.Settings.get_default().get_property("gtk-dialogs-use-header")
dialog = Gimp.Dialog(use_header_bar=use_header_bar,
......
......@@ -38,7 +38,7 @@ PROC_NAME = 'python-fu-console'
RESPONSE_BROWSE, RESPONSE_CLEAR, RESPONSE_SAVE = range(3)
def run(procedure, args, data):
Gimp.ui_init ("python-console.py", False)
Gimp.ui_init ("python-console.py")
namespace = {'__builtins__': __builtins__,
'__name__': '__main__', '__doc__': None,
......
......@@ -1410,7 +1410,7 @@ class SpyroWindow(Gtk.Window):
self.drawing_layer = self.spyro_layer
Gimp.ui_init(sys.argv[0], False)
Gimp.ui_init(sys.argv[0])
create_ui()
self.update_view()
......
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