Beispiel #1
0
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);
}
Beispiel #2
0
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);
}
Beispiel #3
0
int getComboboxI(string cbn) {
    Gtk::ComboBox* cb;
    VRGuiBuilder()->get_widget(cbn, cb);
    int i = gtk_combo_box_get_active(cb->gobj());
    return i;
}