Skip to content

Conversation

nozwock
Copy link
Contributor

@nozwock nozwock commented Jun 9, 2025

When using the Properties macro with enum types that derive Enum, the default value must be explicitly set using #[property(builder(...))].

@nozwock nozwock changed the title Document requirement for explicit default in glib::Enum properties Document requirement for explicit default in Enum properties Jun 9, 2025
@nozwock nozwock force-pushed the document-enum-macro branch 2 times, most recently from 543f38e to 23c02ea Compare June 9, 2025 11:41
@nozwock nozwock force-pushed the document-enum-macro branch from 23c02ea to 914526f Compare June 11, 2025 13:21
@nozwock
Copy link
Contributor Author

nozwock commented Jun 12, 2025

Made some changes.

(Mentioning it separately since I think no notifications are sent for commits?)

sdroege
sdroege previously approved these changes Jun 12, 2025
@nozwock
Copy link
Contributor Author

nozwock commented Jun 12, 2025

Also, let me know if there's a need to squash these commits, and/or to update the PR's title/body, etc.

@sdroege sdroege merged commit e7f5c5d into gtk-rs:main Jun 13, 2025
48 checks passed
@nozwock nozwock deleted the document-enum-macro branch June 13, 2025 10:39
@sdroege sdroege added the backported PR was backported to the current stable branch label Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported PR was backported to the current stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants