diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-01-15 20:44:27 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-01-15 20:44:27 +0100 |
commit | e5a21f56cd375373741dcb2f2e8eefae349cffbc (patch) | |
tree | 06d814004835ee61c1375f38fdab8bc52a83583e /NEWS | |
parent | 5cb3d7af47310d0b6174811d0d298e7d1869624c (diff) | |
download | pygobject-e5a21f56cd375373741dcb2f2e8eefae349cffbc.tar.gz |
overrides: Fix Gtk.Adjustment.__init__ overrides not setting "value" sometimes. Fixes #151
Gtk.Adjustment allows passing positional arguments to __init__ which get
translated to a dict for passing to GObject.Object.__init__. In case of the
first argument "value", if "value" is passed before the upper and
lower bound to Object.__init__ it will be set to 0 instead.
In Python 2 this happened to work (at least on my machine) because
"value" got placed after the bounds (in terms of iteration order)
in the final dict value passed to Object.__init__.
To work around this, set "value" again after __init__().
A similar work around already exists when "value" is passed as a kwarg.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions