diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-17 12:24:40 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-17 12:24:40 +0000 |
commit | 50b9de4864021598a9609be2c0f672cb4cf3fdad (patch) | |
tree | af2093d4ff7472c9e4481867f85a14020d4fe672 | |
parent | 49f1d589382f982897d348f04bdd0ec391cd0bee (diff) | |
download | netsurf-50b9de4864021598a9609be2c0f672cb4cf3fdad.tar.gz netsurf-50b9de4864021598a9609be2c0f672cb4cf3fdad.tar.bz2 |
set hidden flag for more about: pages
svn path=/trunk/netsurf/; revision=12093
-rw-r--r-- | content/fetchers/about.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c index af3ac0911..079711f0f 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -374,9 +374,9 @@ fetch_about_testament_handler_aborted: static bool fetch_about_about_handler(struct fetch_about_context *ctx); struct about_handlers { - const char *name; - fetch_about_handler handler; - bool duplicate; + const char *name; /**< name to match in url */ + fetch_about_handler handler; /* handler for the url */ + bool hidden; /* Flag indicating if entry should be show in listing */ }; struct about_handlers about_handler_list[] = { @@ -386,8 +386,8 @@ struct about_handlers about_handler_list[] = { { "config", fetch_about_config_handler, false }, { "Choices", fetch_about_choices_handler, false }, { "testament", fetch_about_testament_handler, false }, - { "about", fetch_about_about_handler, false }, - { "blank", fetch_about_blank_handler, false } /* The default */ + { "about", fetch_about_about_handler, true }, + { "blank", fetch_about_blank_handler, true } /* The default */ }; #define about_handler_list_len (sizeof(about_handler_list) / sizeof(struct about_handlers)) @@ -429,7 +429,7 @@ static bool fetch_about_about_handler(struct fetch_about_context *ctx) for (abt_loop = 0; abt_loop < about_handler_list_len; abt_loop++) { /* Skip over duplicate entries */ - if (about_handler_list[abt_loop].duplicate) + if (about_handler_list[abt_loop].hidden) continue; res = snprintf(buffer + slen, sizeof buffer - slen, |