[pygobject/pygobject-3-2] GSettings: allow extra keyword arguments
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-2] GSettings: allow extra keyword arguments
- Date: Wed, 2 May 2012 09:18:02 +0000 (UTC)
commit 76fdcf201745dc56c6773a8546da53ad562038a7
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Apr 29 23:55:15 2012 +0200
GSettings: allow extra keyword arguments
All GObject constructors are expected to accept any construct
property as keyword argument, and overrides should respect that.
In particular, not doing this for GSettings prevents using a custom
GSettingsSchema.
https://bugzilla.gnome.org/show_bug.cgi?id=675105
Signed-off-by: Martin Pitt <martinpitt gnome org>
gi/overrides/Gio.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gio.py b/gi/overrides/Gio.py
index 20adf0c..28d6e3c 100644
--- a/gi/overrides/Gio.py
+++ b/gi/overrides/Gio.py
@@ -51,8 +51,8 @@ __all__.append('FileEnumerator')
class Settings(Gio.Settings):
'''Provide dictionary-like access to GLib.Settings.'''
- def __init__(self, schema, path=None, backend=None):
- Gio.Settings.__init__(self, schema=schema, backend=backend, path=path)
+ def __init__(self, schema, path=None, backend=None, **kwargs):
+ Gio.Settings.__init__(self, schema=schema, backend=backend, path=path, **kwargs)
def __contains__(self, key):
return key in self.list_keys()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]