Sign up

Gtk.ComboBoxText setActiveText

I am told that there is no set_active_text method in GTK+. Clearly though gtkmm and GtkD have such a function. I believe the gtkmm function is manually constructed. Is this true of the GtkD method?

Re: Gtk.ComboBoxText setActiveText

On 21-11-17 18:38, Russel Winder wrote:

I am told that there is no set_active_text method in GTK+. Clearly though gtkmm and GtkD have such a function. I believe the gtkmm function is manually constructed. Is this true of the GtkD method?

Yes, the GtkD function is also added manually:
https://github.com/gtkd-developers/GtkD/blob/master/generated/gtkd/gtk/ComboBoxText.d#L156

Re: Gtk.ComboBoxText setActiveTextGtk

I had assumed so. I commented in a Rust context about this since gtk-rs does not add anything manually. The response was "if it isn't in GTK+, it shouldn't be in the bindings". I can see the point they are making, but this is so obviously a missing feature that should be in GTK+. The response, I suspect quite reasonably, is "raise a bug and send in a pull request". I am not sure I will as I am not sure I want to get involved in programming this in C – I have a Rust implementation.

My overiding question is why the gtkmm folk didn't follow the points made by the gtk-rs folk and get it into GTK+?

I'm happy with the way things are in GtkD though.