jeremyletang / rgtk

GTK+ bindings and wrappers for Rust (DEPRECATED SEE https://github.com/rust-gnome )
GNU Lesser General Public License v3.0
121 stars 22 forks source link

TreeStore::set_string should be more general #116

Closed osa1 closed 9 years ago

osa1 commented 9 years ago

Original version of this function is more general: https://developer.gnome.org/gtk3/stable/GtkTreeStore.html#gtk-tree-store-set-value

I'm currently having trouble with this. As far as I can understand this is only way to put booleans or other values in a TreeStore/TreeModel but current wrapped version is not allowing this.

Note that current version is not safe either, because I can set a column type as boolean but I can't put anything other than string.

EDIT: ListStore also has the same problem.

GuillaumeGomez commented 9 years ago

I'll check that tonight then.

GuillaumeGomez commented 9 years ago

Hey, check the #123 PR.

osa1 commented 9 years ago

Thanks guys! I'll check the PR sometime today.

GuillaumeGomez commented 9 years ago

I'm still working on it to make it easier to use.

osa1 commented 9 years ago

This is resolved with #123.