[totem] opensubtitles: Fix run-time deprecation warnings
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] opensubtitles: Fix run-time deprecation warnings
- Date: Sun, 8 Mar 2015 23:36:37 +0000 (UTC)
commit 155ffb3cfe9acd2bf0f1caa9bcc481e1623c5ea8
Author: Bastien Nocera <hadess hadess net>
Date: Sun Mar 8 23:01:48 2015 +0100
opensubtitles: Fix run-time deprecation warnings
src/plugins/opensubtitles/opensubtitles.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index b9cfac4..2d39e33 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -603,10 +603,10 @@ class OpenSubtitles (GObject.Object, # pylint: disable-msg=R0902
thread = DownloadThread (self._model, subtitle_id)
thread.start ()
- GObject.idle_add (self._save_subtitles, thread, subtitle_format)
+ GLib.idle_add (self._save_subtitles, thread, subtitle_format)
self._progress.set_text (_(u'Downloading the subtitles…'))
- GObject.timeout_add (350, self._progress_bar_increment, thread)
+ GLib.timeout_add (350, self._progress_bar_increment, thread)
else:
#warn user!
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]