[pitivi] prefs: Fix g_object_set_is_valid_property warning
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] prefs: Fix g_object_set_is_valid_property warning
- Date: Wed, 9 Jan 2019 23:55:38 +0000 (UTC)
commit 9ce981e0f2d148b0d9d17f241df5f1f613e35908
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Jan 7 00:19:42 2019 +0100
prefs: Fix g_object_set_is_valid_property warning
Fixes #2094
pitivi/dialogs/prefs.py | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index ef14961b..628a30af 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -657,21 +657,17 @@ class PluginManagerStore(Gio.ListStore):
"""Stores the models for available plugins."""
def __init__(self):
- Gio.ListStore.__init__(self)
+ Gio.ListStore.__init__(self, item_type=PluginItem)
self.app = None
self.preferences_dialog = None
@classmethod
def new(cls, app, preferences_dialog):
- obj = PluginManagerStore()
- obj.app = app
- obj.preferences_dialog = preferences_dialog
- # FIXME
- # For some reason this property cannot be set at construct time
- # with GObject.Object.new.
- obj.set_property("item-type", PluginItem)
- obj.reload()
- return obj
+ store = PluginManagerStore()
+ store.app = app
+ store.preferences_dialog = preferences_dialog
+ store.reload()
+ return store
def reload(self):
self.remove_all()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]