[pygobject] GSettings: allow extra keyword arguments
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] GSettings: allow extra keyword arguments
- Date: Mon, 30 Apr 2012 14:02:33 +0000 (UTC)
commit a8e222f04aac3bcf7e4421c4da8d080eeb8b5f56
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 3e12cc7..4a4b404 100644
--- a/gi/overrides/Gio.py
+++ b/gi/overrides/Gio.py
@@ -53,8 +53,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]