-
-
Notifications
You must be signed in to change notification settings - Fork 90
WIP: Refactor Value and Property handling #31
Conversation
37be02c
to
d46eab0
Compare
d46eab0
to
6042cf3
Compare
For signals we can probably have some associated trait function that passes in some kind of "signal creation context" plus a builder-style API on it for making it easier to create signals. I'll experiment with that too. |
6042cf3
to
f4f9a2f
Compare
Initial WIP version of the Value traits refactoring is here now. Needs all the impls to be updated and to be confirmed that it actually works correctly everywhere. Some feedback on the traits would be useful already. |
@fengalin maybe from you? :) |
I'll take a look later today (afk atm). It seems like a neat improvement indeed. |
Thanks, no need to hurry :) The goal is basically to have a direct mapping between types, param specs and the Value API. Based on that we can derive subclass property handling code (the pspecs and getters/setters just based on the type), signal handler code (automatic Value <-> Rust type conversion for the parameters) and other nice things that are currently not possible. |
76f00f2
to
fc00c0b
Compare
Overall there is more code to implement per type now for working with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only looked rapidly so far. Will take a deeper dive tomorrow hopefully.
fc00c0b
to
c1449e7
Compare
Ok, no further comments here so I proceed :) |
e4cd478
to
792cd70
Compare
Ok, next step is to update gir and then the other crates and then get all tests pass 😴 |
792cd70
to
f34b3c4
Compare
I wonder if I should split this PR so that part of it can already get in and doesn't bitrot while I need more time to finish the other parts. The changes to the property handling can go in already and are useful and nice separately too. @bilelmoussaoui @GuillaumeGomez opinions? |
f34b3c4
to
6f5e4b0
Compare
Update to current gir version
I'm working currently on finishing this btw. The next PR is going to have the refactored traits but none of the new pspec-related traits yet (I think we'll want to keep them for the release afterwards). |
I have glib compiling again, and gio and cairo and pango and pangocairo. gdk/gtk need some updates still, and atk is a bit annoying because it has an enum called |
Current WIP is at #454 |
Let's close this one for now. |
This will handle https://github.com/gtk-rs/glib/issues/667 and https://github.com/gtk-rs/glib/issues/637