diff options
Diffstat (limited to 'plugins/externaltools')
-rw-r--r-- | plugins/externaltools/tools/__init__.py | 4 | ||||
-rw-r--r-- | plugins/externaltools/tools/appactivatable.py | 2 | ||||
-rw-r--r-- | plugins/externaltools/tools/windowactivatable.py | 5 |
3 files changed, 5 insertions, 6 deletions
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 |