string getComboboxText(string cbn) { Gtk::ComboBox* cb; VRGuiBuilder()->get_widget(cbn, cb); char* name = gtk_combo_box_get_active_text(cb->gobj()); if (name == 0) return ""; return string (name); }
void setComboboxCallback(string b, void (* fkt)(GtkComboBox*, gpointer)) { Gtk::ComboBox* cb; VRGuiBuilder()->get_widget(b, cb); g_signal_connect (cb->gobj(), "changed", G_CALLBACK(fkt), NULL); }
int getComboboxI(string cbn) { Gtk::ComboBox* cb; VRGuiBuilder()->get_widget(cbn, cb); int i = gtk_combo_box_get_active(cb->gobj()); return i; }