Fossil

Check-in [584546fe]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Correct builtin text capability, broken by typo in [e5b62edb28]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:584546fe77c6d332a34d23839620dfd7eabd11b1
User & Date: andygoth 2016-11-05 02:48:23
Context
2016-11-05
03:00
Change "v" (files) option from a binary submenu to a checkbox, move to the right of the unhide checkbox so the checkboxes are grouped together check-in: a482549c user: andygoth tags: trunk
02:48
Correct builtin text capability, broken by typo in [e5b62edb28] check-in: 584546fe user: andygoth tags: trunk
02:29
Implement style_submenu_checkbox(). Change "unhide" to a checkbox so it can be cancelled without editing the URL by hand. Update skins to support use of <label> tag. Remove redundant "if" check in style.c. Checkbox styling can certainly be improved, but this is a start. check-in: 8d880f0b user: andygoth tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/builtin.c.

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

/*
** Return a pointer to built-in content
*/
const unsigned char *builtin_file(const char *zFilename, int *piSize){
  int lwr, upr, i, c;
  lwr = 0;
  upr = count(aBuiltinFiles)/ - 1;
  while( upr>=lwr ){
    i = (upr+lwr)/2;
    c = strcmp(aBuiltinFiles[i].zName,zFilename);
    if( c<0 ){
      lwr = i+1;
    }else if( c>0 ){
      upr = i-1;







|







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

/*
** Return a pointer to built-in content
*/
const unsigned char *builtin_file(const char *zFilename, int *piSize){
  int lwr, upr, i, c;
  lwr = 0;
  upr = count(aBuiltinFiles) - 1;
  while( upr>=lwr ){
    i = (upr+lwr)/2;
    c = strcmp(aBuiltinFiles[i].zName,zFilename);
    if( c<0 ){
      lwr = i+1;
    }else if( c>0 ){
      upr = i-1;