summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-11-03 15:36:03 +0100
committerBastien Nocera <hadess@hadess.net>2015-11-03 15:37:40 +0100
commitd2836da5051e0bc6e8b876ff1873ae3622569ee0 (patch)
treeaf8eac1d5215315decdf1be561bde3278a3b96bf /src
parent94eb4dc303531b698339d093655a3b8e0e3d4358 (diff)
downloadtotem-d2836da5051e0bc6e8b876ff1873ae3622569ee0.tar.gz
opensubtitles: Fix GI deprecation warnings
/usr/lib64/totem/plugins/opensubtitles/opensubtitles.py:4: PyGIWarning: Peas was imported without specifying a version first. Use gi.require_version('Peas', '1.0') before import to ensure that the right version gets loaded. from gi.repository import Peas, Gtk, Gdk # pylint: disable-msg=E0611 /usr/lib64/totem/plugins/opensubtitles/opensubtitles.py:4: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Peas, Gtk, Gdk # pylint: disable-msg=E0611 /usr/lib64/totem/plugins/opensubtitles/opensubtitles.py:5: PyGIWarning: Totem was imported without specifying a version first. Use gi.require_version('Totem', '1.0') before import to ensure that the right version gets loaded. from gi.repository import Gio, Pango, Totem # pylint: disable-msg=E0611 https://bugzilla.gnome.org/show_bug.cgi?id=757526
Diffstat (limited to 'src')
-rw-r--r--src/plugins/opensubtitles/opensubtitles.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index e58636be8..f2c39e3ba 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+import gi
+gi.require_version('Peas', '1.0')
+gi.require_version('Gtk', '3.0')
+gi.require_version('Totem', '1.0')
from gi.repository import GLib, GObject # pylint: disable-msg=E0611
from gi.repository import Peas, Gtk, Gdk # pylint: disable-msg=E0611
from gi.repository import Gio, Pango, Totem # pylint: disable-msg=E0611