Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DolphinWX: Fix label change for the play/pause button #3333

Merged
merged 1 commit into from Dec 15, 2015

Conversation

ShadowsFriend
Copy link
Contributor

This fixes changing the play/pause button's label depending on the
emulation state. Before, wxToolBarToolBase's SetLabel() function was
used. This function, however, is not implemented in wxGTK which leads to
the label not changing on linux when the button is clicked. Although the preferred
method (according to the wxWidgets documentation) to change the properties
of a tool is to use the toolbar's setters, there is no such setter for
the label. Therefore, this implements a workaround where the
button is deleted and readded afterwards with the updated properties.

Thanks to linkmauve for noticing this!

This fixes changing the play/pause button's label depending on the
emulation state. Before, wxToolBarToolBase's SetLabel() function was
used. This function, however, is not implemented in wxGTK which leads to
the label not changing on linux when the button is clicked. Although the preferred
method (according to the wxWidgets documentation) to change the properties
of a tool is to use the toolbar's setters, there is no such setter for
the label. Therefore, this implements a workaround where the
button is deleted and readded afterwards with the updated properties.

Thanks to linkmauve for noticing this!
@Helios747
Copy link
Contributor

@dolphin-emu-bot rebuild

@Helios747
Copy link
Contributor

I'm not on a Linux machine to test this and won't be until probably Friday, but the code LGTM.

degasus added a commit that referenced this pull request Dec 15, 2015
DolphinWX: Fix label change for the play/pause button
@degasus degasus merged commit 556371b into dolphin-emu:master Dec 15, 2015
@ShadowsFriend ShadowsFriend deleted the pausebutton_fix branch December 15, 2015 17:27
EmptyChaos added a commit to EmptyChaos/dolphin that referenced this pull request Mar 14, 2016
EmptyChaos added a commit to EmptyChaos/dolphin that referenced this pull request Mar 14, 2016
EmptyChaos added a commit to EmptyChaos/dolphin that referenced this pull request Mar 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants