[meld] bin/meld: Update to require GtkSourceView 4
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] bin/meld: Update to require GtkSourceView 4
- Date: Wed, 14 Aug 2019 20:54:37 +0000 (UTC)
commit f6db633154c9decc5b745ce8dcfda86c76d0f81f
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jul 14 07:21:29 2019 +1000
bin/meld: Update to require GtkSourceView 4
bin/meld | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index 83d11248..778549dc 100755
--- a/bin/meld
+++ b/bin/meld
@@ -186,7 +186,7 @@ def check_requirements():
cairo_requirement = (1, 15)
gtk_requirement = (3, 20)
glib_requirement = (2, 48)
- gtksourceview_requirement = (3, 20, 0)
+ gtksourceview_requirement = (4, 0, 0)
pygobject_requirement = (3, 30, 0)
def missing_reqs(mod, ver, exc=None):
@@ -223,13 +223,11 @@ def check_requirements():
missing_reqs("GLib", glib_requirement, e)
try:
- gi.require_version('GtkSource', '3.0')
+ gi.require_version('GtkSource', '4')
from gi.repository import GtkSource
- # TODO: There is no way to get at GtkSourceView's actual version
- assert hasattr(GtkSource, 'SearchSettings')
- assert hasattr(GtkSource, 'Tag')
+ GtkSource.init()
except (ImportError, AssertionError, ValueError) as e:
- missing_reqs("GtkSourceView 3", gtksourceview_requirement, e)
+ missing_reqs("GtkSourceView 4", gtksourceview_requirement, e)
try:
import cairo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]