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

Bind Settings to active instead of state #1370

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

Schmiddiii
Copy link
Contributor

When binding to state the Switch can be in a wrong position where it is colored to be active, but the slider is at the wrong spot. As per advice in the GTK-chat, one should instead bind to the active-property.

image

@Hofer-Julian
Copy link
Collaborator

Thanks!
We do that in multiple places.
Can you please change them too?

Copy link
Collaborator

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had another look and the other instances are probably fine.
But the book text has to be updated, can you do that before I merge it? :)

When binding to `state` the `Switch` can be in a wrong position where it is colored to be active, but the slider is at the wrong spot. As per advice in the GTK-chat, one should instead bind to the active-property.
@Schmiddiii
Copy link
Contributor Author

I ammended that change to the existing commit. I am not sure how much the rest of the page should be changed as this also heavily relies on the "state", but has nothing to do with bindings so not sure if that can stay that way. Also, do you want to explicitly mention that "active" instead of "state" should be used in the text?

@Hofer-Julian
Copy link
Collaborator

The current state is fine.
Thanks!

@Hofer-Julian Hofer-Julian merged commit c1119a0 into gtk-rs:master Apr 13, 2023
@Schmiddiii Schmiddiii deleted the patch-1 branch April 13, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants