[gimp] Bug 761140: importing gimpui module causes plugin query failure
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 761140: importing gimpui module causes plugin query failure
- Date: Sat, 6 Jan 2018 11:12:45 +0000 (UTC)
commit 7ccf5d26246f724c669b26682b1fe9de1e2c98dd
Author: Massimo Valentini <mvalentini src gnome org>
Date: Sat Jan 6 11:11:13 2018 +0100
Bug 761140: importing gimpui module causes plugin query failure
After commit f51acf3bfb9 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
plug-ins/pygimp/plug-ins/python-console.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/pygimp/plug-ins/python-console.py b/plug-ins/pygimp/plug-ins/python-console.py
index 4e6588d..6053b8e 100755
--- a/plug-ins/pygimp/plug-ins/python-console.py
+++ b/plug-ins/pygimp/plug-ins/python-console.py
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]