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 524187 - gtk.Button's use_underline constructor argument doesn't work
gtk.Button's use_underline constructor argument doesn't work
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: gtk
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-24 19:48 UTC by Björn Lindqvist
Modified: 2008-06-21 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (722 bytes, patch)
2008-03-24 20:27 UTC, Paul Pogonyshev
accepted-commit_now Details | Review
fix and simple test (fails before, passes after) (1.46 KB, patch)
2008-03-25 20:42 UTC, Paul Pogonyshev
committed Details | Review

Description Björn Lindqvist 2008-03-24 19:48:35 UTC
According to the manual, use_underline is True by default. But this test fails:

    assert gtk.Button().get_use_underline()

and this too:

    assert gtk.Button(use_underline = True).get_use_underline()

It seems like the use_underline argument gets disrespected.
Comment 1 Paul Pogonyshev 2008-03-24 20:27:38 UTC
Created attachment 107943 [details] [review]
fix

Sounds like marginally important but still a bug.
Comment 2 Johan (not receiving bugmail) Dahlin 2008-03-25 10:34:14 UTC
Comment on attachment 107943 [details] [review]
fix

I think this is good. Gustavo, do you have any comments?

A test case would definitely help!
Comment 3 Paul Pogonyshev 2008-03-25 20:42:26 UTC
Created attachment 108019 [details] [review]
fix and simple test (fails before, passes after)
Comment 4 Paul Pogonyshev 2008-06-21 18:40:30 UTC
Sending        ChangeLog
Sending        gtk/gtk.override
Sending        tests/Makefile.am
Adding         tests/test_button.py
Transmitting file data ....
Committed revision 2995.