We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7682c9d commit 5f2e3f4Copy full SHA for 5f2e3f4
1 file changed
bin/meld
@@ -158,8 +158,8 @@ def check_requirements():
158
try:
159
# FIXME: Extra clause for gi
160
import gi
161
- from gi.repository import Gtk
162
gi.require_version("Gtk", "3.0")
+ from gi.repository import Gtk
163
version = (Gtk.get_major_version(), Gtk.get_minor_version())
164
assert version >= gtk_requirement
165
except (ImportError, AssertionError) as e:
@@ -172,6 +172,7 @@ def check_requirements():
172
missing_reqs("GLib", glib_requirement, e)
173
174
175
+ gi.require_version('GtkSource', '3.0')
176
from gi.repository import GtkSource
177
# TODO: There is no way to get at GtkSourceView's actual version
178
assert hasattr(GtkSource, 'SearchSettings')
0 commit comments