ui/gtk/tree.c

changeset 163
b70e2a77dea0
parent 152
62921b370c60
child 253
087cc9216f28
equal deleted inserted replaced
162:18892c0a9adc 163:b70e2a77dea0
491 UiListModel *listmodel = ui_list_model_new(obj, var, model); 491 UiListModel *listmodel = ui_list_model_new(obj, var, model);
492 492
493 GtkWidget *combobox = ui_create_combobox(obj, listmodel, f, udata); 493 GtkWidget *combobox = ui_create_combobox(obj, listmodel, f, udata);
494 UiContainer *ct = uic_get_current_container(obj); 494 UiContainer *ct = uic_get_current_container(obj);
495 ct->add(ct, combobox, FALSE); 495 ct->add(ct, combobox, FALSE);
496 return combobox;
496 } 497 }
497 498
498 GtkWidget* ui_create_combobox(UiObject *obj, UiListModel *model, ui_callback f, void *udata) { 499 GtkWidget* ui_create_combobox(UiObject *obj, UiListModel *model, ui_callback f, void *udata) {
499 GtkWidget *combobox = gtk_combo_box_new_with_model(GTK_TREE_MODEL(model)); 500 GtkWidget *combobox = gtk_combo_box_new_with_model(GTK_TREE_MODEL(model));
500 501

mercurial