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

gtk: Implement HasParamSpec for TemplateChild<T> #1495

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

bilelmoussaoui
Copy link
Member

Fixes #1456

Untested. I am not sure about the use cases though, so help with that would be appreciated

@bilelmoussaoui
Copy link
Member Author

I guess a use case is to have it for a child widgets, i see

Copy link
Member

@sdroege sdroege left a comment

Choose a reason for hiding this comment

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

Seems good to me. Can't really hurt to have that, can it?

@ranfdev
Copy link
Member

ranfdev commented Sep 25, 2023

The use case is being able to expose a child widget as a read only property.

blueprint-compiler is able to bind nested values, as mywidget.mywidget_child.name, but in that expression mywidget_child must be a property. With this PR exposing mywidget_child becomes trivial

@ranfdev ranfdev merged commit e7ca908 into master Sep 25, 2023
39 checks passed
@bilelmoussaoui bilelmoussaoui deleted the bilelmoussaoui/impl-paramspec branch September 25, 2023 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support TemplateChild in properties macro
3 participants