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

Fix int and animation option writes #86

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Fix int and animation option writes #86

merged 1 commit into from
Aug 23, 2024

Conversation

soreau
Copy link
Member

@soreau soreau commented Jul 22, 2024

Trying to set int or animate options does not work when typing them into the spin button field. Scrolling and clicking the tick boxes to change the value does, however. Apparently, this is a problem with gtkmm when calling get_value_as_int() in the changed handler. It does not affect double options, which use get_value(). This solution uses the C API to work around the problem.

@soreau soreau requested a review from NamorNiradnug July 22, 2024 04:05
@soreau
Copy link
Member Author

soreau commented Jul 22, 2024

@NamorNiradnug I know this seems a bit convoluted, but I was hoping you might be able to help improve upon it.

Trying to set int or animate options does not work when typing them into
the spin button field. Scrolling and clicking the tick boxes to change the
value does, however. Apparently, this is a problem with gtkmm when calling
get_value_as_int() in the changed handler. It does not affect double options,
which use get_value(). This solution uses the C API to work around the problem.
@soreau
Copy link
Member Author

soreau commented Aug 23, 2024

I have been testing this and it seems to be an improvement, so merging before release.

@soreau soreau merged commit 74a16f5 into master Aug 23, 2024
4 checks passed
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.

1 participant