[gedit-plugins] plugins: Fix gtksourceview-4 Python import



commit 45199517edf9bee21c0e65504ade0d38e4e603b9
Author: Martin Blanchard <tchaik gmx com>
Date:   Sun Jan 27 21:50:57 2019 +0000

    plugins: Fix gtksourceview-4 Python import
    
    Between version 3 and version 4, the GtkSourceView module dropped the '.0'
    suffix in its package string (3.0 -> 4). This patch fixes the Python GI
    import (4.0 -> 4) for the 'code-comment' and 'translate' plugins.

 plugins/codecomment/codecomment.py      | 2 +-
 plugins/translate/translate/__init__.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/codecomment/codecomment.py b/plugins/codecomment/codecomment.py
index 94b63f6..8ca2038 100644
--- a/plugins/codecomment/codecomment.py
+++ b/plugins/codecomment/codecomment.py
@@ -23,7 +23,7 @@
 
 import gi
 gi.require_version('Gtk', '3.0')
-gi.require_version('GtkSource', '4.0')
+gi.require_version('GtkSource', '4')
 from gi.repository import GObject, Gio, Gtk, GtkSource, Gedit
 from gpdefs import *
 
diff --git a/plugins/translate/translate/__init__.py b/plugins/translate/translate/__init__.py
index c842a26..6c0cae9 100644
--- a/plugins/translate/translate/__init__.py
+++ b/plugins/translate/translate/__init__.py
@@ -19,7 +19,7 @@
 
 import gi
 gi.require_version('Gtk', '3.0')
-gi.require_version('GtkSource', '4.0')
+gi.require_version('GtkSource', '4')
 gi.require_version('PeasGtk', '1.0')
 
 from gi.repository import GObject, Gio, Gtk, Gedit, PeasGtk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]