ui/gtk/list.c

changeset 824
a0ea8f3aa6e8
parent 821
2aa2f75f8da4
child 853
380ec881faa2
equal deleted inserted replaced
823:1e1df80772ed 824:a0ea8f3aa6e8
1517 /* --------------------------- ComboBox --------------------------- */ 1517 /* --------------------------- ComboBox --------------------------- */
1518 1518
1519 UIWIDGET ui_combobox_create(UiObject *obj, UiListArgs *args) { 1519 UIWIDGET ui_combobox_create(UiObject *obj, UiListArgs *args) {
1520 GtkWidget *combobox = gtk_combo_box_new(); 1520 GtkWidget *combobox = gtk_combo_box_new();
1521 if(args->width > 0) { 1521 if(args->width > 0) {
1522 gtk_widget_set_size_request(scroll_area, args->width, -1); 1522 gtk_widget_set_size_request(combobox, args->width, -1);
1523 } 1523 }
1524 1524
1525 ui_set_name_and_style(combobox, args->name, args->style_class); 1525 ui_set_name_and_style(combobox, args->name, args->style_class);
1526 ui_set_widget_groups(obj->ctx, combobox, args->groups); 1526 ui_set_widget_groups(obj->ctx, combobox, args->groups);
1527 UiContainerPrivate *ct = (UiContainerPrivate*)obj->container_end; 1527 UiContainerPrivate *ct = (UiContainerPrivate*)obj->container_end;

mercurial