TextView is missing some methods
osa1 opened this issue · 5 comments
I believe TextView
is missing some methods described here https://developer.gnome.org/gtk3/stable/GtkTextView.html like set_editable
and get_editable
.
It's totally possible. Could you add what's missing if you can please ?
I'll try. I haven't worked with Rust FFI yet and I'm hoping to work on GtkBuilder
(https://developer.gnome.org/gtk3/stable/GtkBuilder.html) API but I think I can add this too in the process.
If you have issues, just ask.
One problem that I don't know how to solve is wrapping this function:
pub fn gtk_builder_get_object(builder: *mut C_GtkBuilder, name: *const c_char) -> *mut glib::ffi::C_GObject;
I'm no GTK expert but I think the expected use case of this GTK function to cast it to a useful object(widget etc.). I don't know how to do this in Rust.
Basically the type GObject
is too general to be useful but we don't know what is the specific type of returned object.
The #126 PR has fixed this issue I presume. I close it then.