application/demo_bindings.c

changeset 907
d54a72c94320
parent 886
6f5e02fcb7b9
child 908
54150a21abb4
equal deleted inserted replaced
906:edfdf9776da9 907:d54a72c94320
72 char *s2 = ui_get(doc->name); 72 char *s2 = ui_get(doc->name);
73 printf("doc %s - %s\n", s1, s2); 73 printf("doc %s - %s\n", s1, s2);
74 ui_attach_document(event->obj->ctx, doc); 74 ui_attach_document(event->obj->ctx, doc);
75 75
76 } 76 }
77 //UiListSelection sel = ui_list_getselection(wdata->doclist);
78 //printf("sel: %d\n", sel.rows[0]);
79 //ui_listselection_free(sel);
80 } 77 }
81 78
82 void* doclist_get_value(void *elm, int col) { 79 void* doclist_get_value(void *elm, int col) {
83 Document *doc = elm; 80 Document *doc = elm;
84 return ui_get(doc->id); 81 return ui_get(doc->id);

mercurial