Closed gkoz closed 9 years ago
Right, the example...
I'll reshuffle the changes between commits a bit more for nicer separation...
I think list_store.rs, tree_store.rs, and value.rs need to use your enum, and then the treeview example can use it. That should allow the ffi module in rgtk.rs to be removed.
Your PR handles that part I guess. Except Value
should be moved to glib
, it's not a part of GTK either.
I'll close my PR and submit a new one after this is merged. My current PR will definitely conflict.
If this good for you I merge.
Yeah, go ahead
Thanks !
@gkoz I assume that gtype.rs should also be in glib
.
Edit: I'll leave that file alone for now.
Add an enum
Type
that representsGType
in a Rust-y way and implements translation between them.Example usage would be