Commit 7ccf5d26 authored by Massimo Valentini's avatar Massimo Valentini Committed by Michael Natterer

Bug 761140: importing gimpui module causes plugin query failure

After commit f51acf3b the python console no longer
initialized gimpui, because it is no longer part of module
initialization.

If the plug-in is run noninteractively and it imports
gimpui explicitely it is now necessary to call gimp_ui_init ()
at the right time
parent 5ea96afd
......@@ -30,6 +30,7 @@ def do_console():
pygtk.require('2.0')
import sys, gobject, gtk, gimpenums, gimpshelf, gimpui, pyconsole
gimpui.gimp_ui_init ()
namespace = {'__builtins__': __builtins__,
'__name__': '__main__', '__doc__': None,
......
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