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

Update expander row 1.4 and make more properties accessible #136

Merged

Conversation

PhilippMDoerner
Copy link
Contributor

@PhilippMDoerner PhilippMDoerner commented Nov 11, 2023

While I was debugging ExpanderRow I noticed a couple properties weren't wrapped, so I added them.

Also in order to be able to have 2 way bindings for the "expanded" property (since you can set it while also influencing it from the user side by interacting with the widget) I added an event-listener for the "expannded" property.

Possibly not too valuable, but makes the wrapping around the row more "complete" in my eyes.

This also prepares ExpanderRow for higher adwaita versions, as adw_expander_row_add_action was deprecated in favour of adw_expander_row_add_suffix in Adwaita 1.4.

owlkettle/adw.nim Outdated Show resolved Hide resolved
owlkettle/adw.nim Outdated Show resolved Hide resolved
property hooks always get executed at least once, even if the
value is never set.
Therefore you shouldn't automatically throw an exception
in a hook.
Copy link
Owner

@can-lehmann can-lehmann left a comment

Choose a reason for hiding this comment

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

LGTM!

@can-lehmann can-lehmann merged commit bdc343f into can-lehmann:main Mar 5, 2024
3 checks passed
@PhilippMDoerner PhilippMDoerner deleted the update-expander-row-1.4 branch March 5, 2024 18:33
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