ui/gtk/tree.c

changeset 59
eb6611be50c7
parent 52
25e5390cce41
child 69
419c8c3209e8
equal deleted inserted replaced
58:2b124f8ebd95 59:eb6611be50c7
98 GTK_POLICY_AUTOMATIC, 98 GTK_POLICY_AUTOMATIC,
99 GTK_POLICY_AUTOMATIC); // GTK_POLICY_ALWAYS 99 GTK_POLICY_AUTOMATIC); // GTK_POLICY_ALWAYS
100 gtk_container_add(GTK_CONTAINER(scroll_area), view); 100 gtk_container_add(GTK_CONTAINER(scroll_area), view);
101 101
102 UiContainer *ct = uic_get_current_container(obj); 102 UiContainer *ct = uic_get_current_container(obj);
103 ct->add(ct, scroll_area); 103 ct->add(ct, scroll_area, TRUE);
104 104
105 return scroll_area; 105 return scroll_area;
106 } 106 }
107 107
108 UIWIDGET ui_listview(UiObject *obj, UiList *list, ui_model_getvalue_f getvalue, ui_callback f, void *udata) { 108 UIWIDGET ui_listview(UiObject *obj, UiList *list, ui_model_getvalue_f getvalue, ui_callback f, void *udata) {
193 GTK_POLICY_AUTOMATIC, 193 GTK_POLICY_AUTOMATIC,
194 GTK_POLICY_AUTOMATIC); // GTK_POLICY_ALWAYS 194 GTK_POLICY_AUTOMATIC); // GTK_POLICY_ALWAYS
195 gtk_container_add(GTK_CONTAINER(scroll_area), view); 195 gtk_container_add(GTK_CONTAINER(scroll_area), view);
196 196
197 UiContainer *ct = uic_get_current_container(obj); 197 UiContainer *ct = uic_get_current_container(obj);
198 ct->add(ct, scroll_area); 198 ct->add(ct, scroll_area, TRUE);
199 199
200 return scroll_area; 200 return scroll_area;
201 } 201 }
202 202
203 UIWIDGET ui_table(UiObject *obj, UiList *list, UiModelInfo *modelinfo) { 203 UIWIDGET ui_table(UiObject *obj, UiList *list, UiModelInfo *modelinfo) {

mercurial