From 50b9de4864021598a9609be2c0f672cb4cf3fdad Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 17 Mar 2011 12:24:40 +0000 Subject: set hidden flag for more about: pages svn path=/trunk/netsurf/; revision=12093 --- content/fetchers/about.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'content/fetchers') 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, -- cgit v1.2.3