[gnome-tweak-tool] Add missing gi.require_version() calls
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Add missing gi.require_version() calls
- Date: Wed, 11 Nov 2015 18:06:23 +0000 (UTC)
commit 849b2678692415085fb1b3303d3952bc612a7e1e
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Nov 11 18:50:25 2015 +0100
Add missing gi.require_version() calls
pygobject now warns if we don't explicitly require a version before
importing. This adds the missing calls where appropriate.
For the pygobject change see
https://bugzilla.gnome.org/show_bug.cgi?id=727379 .
https://bugzilla.gnome.org/show_bug.cgi?id=757537
gtweak/egowrapper.py | 3 +++
gtweak/tweaks/tweak_group_xkb.py | 2 ++
gtweak/utils.py | 2 ++
3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/egowrapper.py b/gtweak/egowrapper.py
index 24930e2..738172a 100644
--- a/gtweak/egowrapper.py
+++ b/gtweak/egowrapper.py
@@ -18,6 +18,9 @@
import json
import logging
+import gi
+gi.require_version("Soup", "2.4")
+gi.require_version("SoupGNOME", "2.4")
from gi.repository import GObject
from gi.repository import Soup, SoupGNOME
diff --git a/gtweak/tweaks/tweak_group_xkb.py b/gtweak/tweaks/tweak_group_xkb.py
index 7b16829..2a0fc88 100644
--- a/gtweak/tweaks/tweak_group_xkb.py
+++ b/gtweak/tweaks/tweak_group_xkb.py
@@ -19,6 +19,8 @@
import logging
+import gi
+gi.require_version("GnomeDesktop", "3.0")
from gi.repository import Pango, Gtk, GnomeDesktop
from gtweak.gshellwrapper import GnomeShellFactory
from gtweak.tweakmodel import Tweak, TweakGroup
diff --git a/gtweak/utils.py b/gtweak/utils.py
index 6632ad9..6e4d701 100644
--- a/gtweak/utils.py
+++ b/gtweak/utils.py
@@ -25,6 +25,8 @@ import glob
import gtweak
from gtweak.gsettings import GSettingsSetting
+import gi
+gi.require_version("Notify", "0.7")
from gi.repository import GObject
from gi.repository import GLib
from gi.repository import Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]