diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-12-12 23:27:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-12-12 23:27:00 (GMT) |
commit | f89f72f53b42c704dcb5767e508747795f7115c6 (patch) | |
tree | 85be0588076f02b5546adac3424b201d68817e19 /plugins/pychrysa/quirks.c | |
parent | dae8c208e24d03c7bf5314a86cb366a4e84a53c2 (diff) |
Allowed classes which derive from GObject to receive arguments in their constructor.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@302 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/quirks.c')
-rw-r--r-- | plugins/pychrysa/quirks.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/pychrysa/quirks.c b/plugins/pychrysa/quirks.c index 0e35f57..bd60925 100644 --- a/plugins/pychrysa/quirks.c +++ b/plugins/pychrysa/quirks.c @@ -153,6 +153,27 @@ void pychrysalide_set_instance_data(GObject *obj, PyTypeObject *type) /****************************************************************************** * * +* Paramètres : self = objet à initialiser (théoriquement). * +* args = arguments fournis à l'appel. * +* kwds = arguments de type key=val fournis. * +* * +* Description : Initialise un objet dérivé de GObject en Python. * +* * +* Retour : 0. * +* * +* Remarques : - * +* * +******************************************************************************/ + +int pychrysalide_allow_args_for_gobjects(PyObject *self, PyObject *args, PyObject *kwds) +{ + return 0; + +} + + +/****************************************************************************** +* * * Paramètres : ref = espace de référencement global à utiliser. * * * * Description : Evite à Python d'avoir à manipuler les références internes. * |