ui/gtk/list.c

changeset 494
15a0cfe47595
parent 490
0206161e92d5
child 495
1898cf608155
equal deleted inserted replaced
493:b045c70d7c02 494:15a0cfe47595
348 348
349 // add widget to parent 349 // add widget to parent
350 UI_APPLY_LAYOUT1(current, args); 350 UI_APPLY_LAYOUT1(current, args);
351 current->container->add(current->container, view, FALSE); 351 current->container->add(current->container, view, FALSE);
352 return view; 352 return view;
353 }
354
355 void ui_listview_select(UIWIDGET listview, int index) {
356 GtkSelectionModel *model = gtk_list_view_get_model(GTK_LIST_VIEW(listview));
357 gtk_selection_model_select_item(model, index, TRUE);
358 }
359
360 void ui_combobox_select(UIWIDGET dropdown, int index) {
361 gtk_drop_down_set_selected(GTK_DROP_DOWN(dropdown), index);
353 } 362 }
354 363
355 UIWIDGET ui_table_create(UiObject *obj, UiListArgs args) { 364 UIWIDGET ui_table_create(UiObject *obj, UiListArgs args) {
356 UiObject* current = uic_current_obj(obj); 365 UiObject* current = uic_current_obj(obj);
357 366

mercurial