After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672318 - Gtk.Button constructor does not accept use_stock=
Gtk.Button constructor does not accept use_stock=
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-18 00:00 UTC by kalanzun
Modified: 2012-03-18 15:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (754 bytes, patch)
2012-03-18 00:00 UTC, kalanzun
none Details | Review
Fix (765 bytes, patch)
2012-03-18 00:01 UTC, kalanzun
none Details | Review

Description kalanzun 2012-03-18 00:00:25 UTC
Created attachment 210021 [details] [review]
Test case

When setting use_stock=, the constructor of Gtk.Button raises TypeError:: wrapper_descriptor object got multiple values for keyword argument 'use_stock'

See gtk_button_use_stock_test.patch for a test case.
Comment 1 kalanzun 2012-03-18 00:01:10 UTC
Created attachment 210022 [details] [review]
Fix

See gtk_button_use_stock.patch for a fix.

If stock is set, it overwrites use_stock to true. If stock is not set, it leaves use_stock alone. The default value is False.
Comment 2 Martin Pitt 2012-03-18 15:08:27 UTC
Thank you! Unfortunately I don't know/see your real name, so I couldn't commit the patch under your name. I credited your mail address in the changelog.