From 65f1ba7eb37166159e30e0700ac1cc19a02c066f Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Mon, 17 Aug 2015 09:52:18 +0200 Subject: Move gi.require_version in the __init__ files --- plugins/externaltools/tools/__init__.py | 4 ++++ plugins/externaltools/tools/appactivatable.py | 2 -- plugins/externaltools/tools/windowactivatable.py | 5 +---- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/externaltools') diff --git a/plugins/externaltools/tools/__init__.py b/plugins/externaltools/tools/__init__.py index e2ef0296d..0cc0b4fa6 100644 --- a/plugins/externaltools/tools/__init__.py +++ b/plugins/externaltools/tools/__init__.py @@ -16,6 +16,10 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +import gi +gi.require_version('Gedit', '3.0') +gi.require_version('Gtk', '3.0') + from .appactivatable import AppActivatable from .windowactivatable import WindowActivatable diff --git a/plugins/externaltools/tools/appactivatable.py b/plugins/externaltools/tools/appactivatable.py index 74f2a780e..072406527 100644 --- a/plugins/externaltools/tools/appactivatable.py +++ b/plugins/externaltools/tools/appactivatable.py @@ -16,8 +16,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import gi -gi.require_version('Gtk', '3.0') from gi.repository import GLib, Gio, GObject, Gtk, Gdk, Gedit from .library import ToolLibrary from .manager import Manager diff --git a/plugins/externaltools/tools/windowactivatable.py b/plugins/externaltools/tools/windowactivatable.py index ef1971b07..c4fd60aaa 100644 --- a/plugins/externaltools/tools/windowactivatable.py +++ b/plugins/externaltools/tools/windowactivatable.py @@ -18,10 +18,7 @@ __all__ = ('ExternalToolsPlugin', 'OutputPanel', 'Capture', 'UniqueById') -import gi -gi.require_version('Gtk', '3.0') -gi.require_version('PeasGtk', '1.0') -from gi.repository import GLib, Gio, GObject, Gtk, Gedit, PeasGtk +from gi.repository import GLib, Gio, GObject, Gtk, Gedit from .library import ToolLibrary from .outputpanel import OutputPanel from .capture import Capture -- cgit v1.2.1