application/window.c

changeset 11
26acbfa75c1f
parent 9
0676408f50ad
child 13
5a8762fcfecc
equal deleted inserted replaced
10:f8dfc5705516 11:26acbfa75c1f
54 // navigation bar 54 // navigation bar
55 ui_hbox(obj, .fill = UI_OFF, .margin = 8) { 55 ui_hbox(obj, .fill = UI_OFF, .margin = 8) {
56 ui_button(obj, .icon = "Back"); 56 ui_button(obj, .icon = "Back");
57 ui_button(obj, .icon = "Forward"); 57 ui_button(obj, .icon = "Forward");
58 58
59 ui_path_textfield(obj, .fill = UI_ON, .getpathelm = dav_get_pathelm, .varname = "path"); 59 ui_path_textfield(obj, .fill = UI_ON, .getpathelm = dav_get_pathelm, .onactivate = action_path_selected ,.varname = "path");
60 60
61 ui_progressspinner(obj, .value = wdata->progress); 61 ui_progressspinner(obj, .value = wdata->progress);
62 } 62 }
63 63
64 // main content 64 // main content
175 } 175 }
176 *ret_nelm = n; 176 *ret_nelm = n;
177 177
178 return elms; 178 return elms;
179 } 179 }
180
181
182
183 void action_path_selected(UiEvent *event, void *data) {
184 DavBrowser *browser = event->document;
185 char *path = event->eventdata;
186 davbrowser_query_url(event->obj, browser, path);
187 }

mercurial