Fossil SCM

[202edc2c1c]: Make `th1-setup` a textarea in settings UI. Fixed by making it a versionable setting (just as "tcl-setup", for consistancy) and moving it to the second column of the setup page.

jan.nijtmans 2014-02-17 12:43 UTC trunk
Commit 28429acb2b337d9dadc3458035f2f71b33c5e2c2
2 files changed +2 -2 +11 -1
+2 -2
--- src/db.c
+++ src/db.c
@@ -2157,13 +2157,13 @@
21572157
{ "ssh-command", 0, 40, 0, "" },
21582158
{ "ssl-ca-location",0, 40, 0, "" },
21592159
{ "ssl-identity", 0, 40, 0, "" },
21602160
#ifdef FOSSIL_ENABLE_TCL
21612161
{ "tcl", 0, 0, 0, "off" },
2162
- { "tcl-setup", 0, 40, 0, "" },
2162
+ { "tcl-setup", 0, 40, 1, "" },
21632163
#endif
2164
- { "th1-setup", 0, 40, 0, "" },
2164
+ { "th1-setup", 0, 40, 1, "" },
21652165
{ "th1-uri-regexp",0, 40, 0, "" },
21662166
{ "web-browser", 0, 32, 0, "" },
21672167
{ "white-foreground", 0, 0, 0, "off" },
21682168
{ 0,0,0,0,0 }
21692169
};
21702170
--- src/db.c
+++ src/db.c
@@ -2157,13 +2157,13 @@
2157 { "ssh-command", 0, 40, 0, "" },
2158 { "ssl-ca-location",0, 40, 0, "" },
2159 { "ssl-identity", 0, 40, 0, "" },
2160 #ifdef FOSSIL_ENABLE_TCL
2161 { "tcl", 0, 0, 0, "off" },
2162 { "tcl-setup", 0, 40, 0, "" },
2163 #endif
2164 { "th1-setup", 0, 40, 0, "" },
2165 { "th1-uri-regexp",0, 40, 0, "" },
2166 { "web-browser", 0, 32, 0, "" },
2167 { "white-foreground", 0, 0, 0, "off" },
2168 { 0,0,0,0,0 }
2169 };
2170
--- src/db.c
+++ src/db.c
@@ -2157,13 +2157,13 @@
2157 { "ssh-command", 0, 40, 0, "" },
2158 { "ssl-ca-location",0, 40, 0, "" },
2159 { "ssl-identity", 0, 40, 0, "" },
2160 #ifdef FOSSIL_ENABLE_TCL
2161 { "tcl", 0, 0, 0, "off" },
2162 { "tcl-setup", 0, 40, 1, "" },
2163 #endif
2164 { "th1-setup", 0, 40, 1, "" },
2165 { "th1-uri-regexp",0, 40, 0, "" },
2166 { "web-browser", 0, 32, 0, "" },
2167 { "white-foreground", 0, 0, 0, "off" },
2168 { 0,0,0,0,0 }
2169 };
2170
+11 -1
--- src/setup.c
+++ src/setup.c
@@ -1269,15 +1269,25 @@
12691269
entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name,
12701270
pSet->var!=0 ? pSet->var : pSet->name,
12711271
(char*)pSet->def, 0);
12721272
@ <br />
12731273
}
1274
+ }
1275
+ for(pSet=ctrlSettings; pSet->name!=0; pSet++){
1276
+ if( pSet->width!=0 && pSet->versionable && sqlite3_strglob("*glob", pSet->name) ){
1277
+ int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0;
1278
+ @<b>%s(pSet->name)</b> (v)<br />
1279
+ textarea_attribute("", /*rows*/ 3, /*cols*/ 35, pSet->name,
1280
+ pSet->var!=0 ? pSet->var : pSet->name,
1281
+ (char*)pSet->def, hasVersionableValue);
1282
+ @ <br />
1283
+ }
12741284
}
12751285
@ </td><td style="width:50px;"></td><td valign="top">
12761286
for(pSet=ctrlSettings; pSet->name!=0; pSet++){
12771287
int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0;
1278
- if( pSet->width!=0 && pSet->versionable){
1288
+ if( pSet->width!=0 && !sqlite3_strglob("*glob", pSet->name)){
12791289
@<b>%s(pSet->name)</b> (v)<br />
12801290
textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name,
12811291
pSet->var!=0 ? pSet->var : pSet->name,
12821292
(char*)pSet->def, hasVersionableValue);
12831293
@<br />
12841294
--- src/setup.c
+++ src/setup.c
@@ -1269,15 +1269,25 @@
1269 entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name,
1270 pSet->var!=0 ? pSet->var : pSet->name,
1271 (char*)pSet->def, 0);
1272 @ <br />
1273 }
 
 
 
 
 
 
 
 
 
 
1274 }
1275 @ </td><td style="width:50px;"></td><td valign="top">
1276 for(pSet=ctrlSettings; pSet->name!=0; pSet++){
1277 int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0;
1278 if( pSet->width!=0 && pSet->versionable){
1279 @<b>%s(pSet->name)</b> (v)<br />
1280 textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name,
1281 pSet->var!=0 ? pSet->var : pSet->name,
1282 (char*)pSet->def, hasVersionableValue);
1283 @<br />
1284
--- src/setup.c
+++ src/setup.c
@@ -1269,15 +1269,25 @@
1269 entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name,
1270 pSet->var!=0 ? pSet->var : pSet->name,
1271 (char*)pSet->def, 0);
1272 @ <br />
1273 }
1274 }
1275 for(pSet=ctrlSettings; pSet->name!=0; pSet++){
1276 if( pSet->width!=0 && pSet->versionable && sqlite3_strglob("*glob", pSet->name) ){
1277 int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0;
1278 @<b>%s(pSet->name)</b> (v)<br />
1279 textarea_attribute("", /*rows*/ 3, /*cols*/ 35, pSet->name,
1280 pSet->var!=0 ? pSet->var : pSet->name,
1281 (char*)pSet->def, hasVersionableValue);
1282 @ <br />
1283 }
1284 }
1285 @ </td><td style="width:50px;"></td><td valign="top">
1286 for(pSet=ctrlSettings; pSet->name!=0; pSet++){
1287 int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0;
1288 if( pSet->width!=0 && !sqlite3_strglob("*glob", pSet->name)){
1289 @<b>%s(pSet->name)</b> (v)<br />
1290 textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name,
1291 pSet->var!=0 ? pSet->var : pSet->name,
1292 (char*)pSet->def, hasVersionableValue);
1293 @<br />
1294

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button