application/window.c

changeset 94
7fdf1489b82f
parent 92
43aee6c8c166
child 95
e92c72705da4
equal deleted inserted replaced
93:5ee236155955 94:7fdf1489b82f
27 */ 27 */
28 28
29 #include "window.h" 29 #include "window.h"
30 30
31 #include "davcontroller.h" 31 #include "davcontroller.h"
32 #include "settings.h" 32 #include "appsettings.h"
33 33
34 #include <ui/stock.h> 34 #include <ui/stock.h>
35 #include <ui/dnd.h> 35 #include <ui/dnd.h>
36 36
37 #include <libidav/utils.h> 37 #include <libidav/utils.h>
134 char *executable = dav_get_string_property_ns( 134 char *executable = dav_get_string_property_ns(
135 res, 135 res,
136 "http://apache.org/dav/props/", 136 "http://apache.org/dav/props/",
137 "executable"); 137 "executable");
138 cxmutstr flags = cx_asprintf("%s%s%s", 138 cxmutstr flags = cx_asprintf("%s%s%s",
139 settings_get_cryptoflag(keyprop ? 1 : 0), 139 appsettings_get_cryptoflag(keyprop ? 1 : 0),
140 settings_get_lockflag(lockdiscovery ? 1 : 0), 140 appsettings_get_lockflag(lockdiscovery ? 1 : 0),
141 settings_get_execflag(executable ? 1 : 0)); 141 appsettings_get_execflag(executable ? 1 : 0));
142 return flags.ptr; 142 return flags.ptr;
143 } 143 }
144 case 3: { // type 144 case 3: { // type
145 return res->iscollection ? "Collection" : (res->contenttype ? res->contenttype : "Resource"); 145 return res->iscollection ? "Collection" : (res->contenttype ? res->contenttype : "Resource");
146 } 146 }

mercurial