about summary refs log tree commit diff stats
path: root/src/LYOptions.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-11-18 04:13:09 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-11-18 04:13:09 -0500
commit45f1aadc261561566cd074da1d9b0fb21a6ad78c (patch)
treeb1d2c414300b50815acb7b986077556e5dda712d /src/LYOptions.c
parent0f88481e93b50612489cc8e5b1ca365196439373 (diff)
downloadlynx-snapshots-45f1aadc261561566cd074da1d9b0fb21a6ad78c.tar.gz
snapshot of project "lynx", label v2-8-3dev_15
Diffstat (limited to 'src/LYOptions.c')
-rw-r--r--src/LYOptions.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/LYOptions.c b/src/LYOptions.c
index ab88556a..1b61f780 100644
--- a/src/LYOptions.c
+++ b/src/LYOptions.c
@@ -3336,8 +3336,20 @@ static OptValues user_mode_values[] = {
 	{ INTERMEDIATE_MODE,	"Intermediate", "Intermediate" },
 	{ ADVANCED_MODE,	"Advanced",	"Advanced" },
 	{ 0, 0, 0 }};
+
 static char * vi_keys_string		= "vi_keys";
 
+static char * visited_pages_type_string	= "visited_pages_type";
+static OptValues visited_pages_type_values[] = {
+	{ VISITED_LINKS_AS_FIRST_V, "By First Visit",	"first_visited" },
+	{ VISITED_LINKS_AS_FIRST_V | VISITED_LINKS_REVERSE,
+		    "By First Visit Reversed",	"first_visited_reversed" },
+	{ VISITED_LINKS_AS_TREE,    "As Visit Tree",	"visit_tree" },
+	{ VISITED_LINKS_AS_LATEST,  "By Last Visit",	"last_visited" },
+	{ VISITED_LINKS_AS_LATEST | VISITED_LINKS_REVERSE,
+		    "By Last Visit Reversed",	"last_visited_reversed" },
+	{ 0, 0, 0 }};
+
 /*
  * Document Layout
  */
@@ -3795,6 +3807,10 @@ PUBLIC int postoptions ARGS1(
 	    }
 	}
 
+	/* Type of visited pages page: SELECT */
+	if (!strcmp(data[i].tag, visited_pages_type_string))
+	   GetOptValues(visited_pages_type_values, data[i].value, &Visited_Links_As);
+
 	/* Show Images: SELECT */
 	if (!strcmp(data[i].tag, images_string)) {
 	    if (!strcmp(data[i].value, images_ignore_all_string)
@@ -4357,6 +4373,12 @@ PRIVATE int gen_options ARGS1(
     PutOptValues(fp0, vi_keys, bool_values);
     EndSelect(fp0);
 
+    /* Visited Pages: SELECT */
+    PutLabel(fp0, gettext("Visited Pages"));
+    BeginSelect(fp0, visited_pages_type_string);
+    PutOptValues(fp0, Visited_Links_As, visited_pages_type_values);
+    EndSelect(fp0);
+
     /* Display Character Set: SELECT */
     PutLabel(fp0, gettext("Display character set"));
     BeginSelect(fp0, display_char_set_string);