Closed osa1 closed 9 years ago
I think we need to do the following:
FFIGObject
trait with get_gobject
and wrap
methods as usual.struct_Widget!
with struct_GObject!
.GObject
trait.Widget
trait should also enforce implementation of GObject
.I may be forgetting some intermediate steps.
I actually tried to do that but my Rust skills are simply not enough for the task. It was extremely annoying for me, I had to fight with problems related with name resolving and macros. Sorry for not helping with this.
I spoke about that a few times ago with @jeremyletang. For the moment, we both are quite busy but as soon as we have time, we'll speak again about that. But you're right, we need to create an Object trait and implement it in the Widget trait.
hi @osa1,
We have plan to had a gobject
trait. I've already think about this and how to implement it. This go with the signals
refactor that we have planned. But has @GuillaumeGomez said we are a bit busy right now but we will try to work on this soon ( probably between today and this week end ).
See https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#g-object-connect