GNOME Bugzilla – Bug 698287
Make sure wizard buttons use underlined chars
Last modified: 2016-03-31 13:22:07 UTC
For some reason, creating a button with a label containing a "_" and setting use_underline to TRUE afterwards don't make GtkButton reinterpret the label to remove the '_' character from the label and use it as an underline mark. Setting the label to the value it already has right after setting use_underline works around this issue. Things seem to work as expected with gtk+ 3.6 without this workaround so it's likely to be a gtk+ regression.
Created attachment 241815 [details] [review] Make sure wizard buttons use underlined chars
This is actually a libgd bug, see bug #698289
Created attachment 241817 [details] [review] Make sure wizard buttons use underlined chars Because of libgd bgo#698289, creating a button with a label containing a "_" and setting use_underline to TRUE afterwards don't make GdHeadersimpleButton reinterpret the label to remove the '_' character and use it as an underline mark. Setting the label to the value it already has right after setting use_underline works around this issue.
Created attachment 241818 [details] [review] Make sure wizard buttons use underlined chars Because of libgd bgo#698289, creating a button with a label containing a "_" and setting use_underline to TRUE afterwards don't make GdHeadersimpleButton reinterpret the label to remove the '_' character and use it as an underline mark. Setting the label to the value it already has right after setting use_underline works around this issue.
Review of attachment 241815 [details] [review]: ACK with 1 micro change: Please add a FIXME note pointing to bug#698289.
Attachment 241818 [details] pushed as 41e9cb5 - Make sure wizard buttons use underlined chars
Created attachment 242206 [details] [review] Fix underline char in "Done" selection button In commit "Make sure wizard buttons use underlined chars", I missed the "Done" button which exits from the selection mode. This commit fixes it.
Review of attachment 242206 [details] [review]: ACK
Comment on attachment 242206 [details] [review] Fix underline char in "Done" selection button Attachment 242206 [details] pushed as 01b104c - Fix underline char in "Done" selection button