application/application.c

changeset 89
2fbb3cac05a5
parent 88
e27526429d85
child 94
7fdf1489b82f
equal deleted inserted replaced
88:e27526429d85 89:2fbb3cac05a5
313 for(int i=0;i<nres;i++) { 313 for(int i=0;i<nres;i++) {
314 ui_list_setselection(browser->resources, i); 314 ui_list_setselection(browser->resources, i);
315 } 315 }
316 } 316 }
317 317
318 void action_rename(UiEvent *event, void *data) {
319 DavBrowser *browser = event->document;
320 UiListSelection sel = ui_list_getselection(browser->resources);
321 if (sel.count == 1) {
322 davbrowser_rename(event->obj, browser, sel);
323 } else if(sel.count > 1) {
324 fprintf(stderr, "Renaming multiple resources is not implemented yet\n");
325 }
326 }
327
318 static void newfiledialog_result(UiEvent *event, void *data) { 328 static void newfiledialog_result(UiEvent *event, void *data) {
319 DavBrowser *browser = event->document; 329 DavBrowser *browser = event->document;
320 char *path = event->eventdata; 330 char *path = event->eventdata;
321 if (event->intval == 1) { 331 if (event->intval == 1) {
322 davbrowser_newfile(event->obj, browser, path); 332 davbrowser_newfile(event->obj, browser, path);

mercurial