[totem] opensubtitles: Fix error with newer version of PyGObject
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] opensubtitles: Fix error with newer version of PyGObject
- Date: Mon, 24 Mar 2014 13:24:03 +0000 (UTC)
commit a05e420f4b43db80e4a96793211a9eca4cf3e130
Author: Bastien Nocera <hadess hadess net>
Date: Sun Mar 23 14:05:11 2014 +0100
opensubtitles: Fix error with newer version of PyGObject
We cannot pass an object as user_data, as pygobject stopped handling
non-integers, non-capsules or not None as possible arguments.
As we do not use Totem.plugin_load_interface()'s signal connection
feature, pass None instead.
https://bugzilla.gnome.org/show_bug.cgi?id=724093
src/plugins/opensubtitles/opensubtitles.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 1d98404..87979ec 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -430,7 +430,7 @@ class OpenSubtitles (GObject.Object, # pylint: disable-msg=R0902
builder = Totem.plugin_load_interface ("opensubtitles",
"opensubtitles.ui", True,
self._totem.get_main_window (),
- self)
+ None)
# Obtain all the widgets we need to initialize
combobox = builder.get_object ('language_combobox')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]