lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Re: when submit lynx/dev23 ?


From: Leonid Pauzner
Subject: lynx-dev Re: when submit lynx/dev23 ?
Date: Sat, 29 Aug 1998 19:49:05 +0400 (MSD)

If I am not late, add cookies switch to options menu.



diff -u old/lyoption.c ./lyoption.c
--- old/lyoption.c      Sat Aug 29 16:10:30 1998
+++ ./lyoption.c        Sat Aug 29 19:39:10 1998
@@ -3146,6 +3146,11 @@

 static char * verbose_images_string = "verbose_images";

+static char * cookies_string = "cookies";
+static char * cookies_ignore_all_string = "ignore";
+static char * cookies_up_to_user_string = "ask user";
+static char * cookies_accept_all_string = "accept all";
+
 static char * vi_keys_string = "vi_keys";

 static char * emacs_keys_string = "emacs_keys";
@@ -3503,6 +3508,21 @@
        }

        /*
+        * cookies: ignore/up to user/accept all
+        */
+       if (!strcmp(data[i].tag, cookies_string)) {
+           if (!strcmp(data[i].value, cookies_ignore_all_string)) {
+               LYSetCookies = FALSE;
+           } else if (!strcmp(data[i].value, cookies_up_to_user_string)) {
+               LYSetCookies = TRUE;
+               LYAcceptAllCookies = FALSE;
+           } else if (!strcmp(data[i].value, cookies_accept_all_string)) {
+               LYSetCookies = TRUE;
+               LYAcceptAllCookies = TRUE;
+           }
+       }
+
+       /*
         * vi_keys
         */
        if (!strcmp(data[i].tag, vi_keys_string)) {
@@ -3831,6 +3851,22 @@
     PutLabel(fp0, "Verbose images");
     BeginSelect(fp0, verbose_images_string);
     PutOptValues(fp0, verbose_img, bool_values);
+    EndSelect(fp0);
+
+    /*
+     * cookies: ignore/up to user/accept all
+     */
+    PutLabel(fp0, "Cookies");
+    BeginSelect(fp0, cookies_string);
+    PutOption(fp0, !LYSetCookies,
+       cookies_ignore_all_string,
+       cookies_ignore_all_string);
+    PutOption(fp0, LYSetCookies && !LYAcceptAllCookies,
+       cookies_up_to_user_string,
+       cookies_up_to_user_string);
+    PutOption(fp0, LYSetCookies && LYAcceptAllCookies,
+       cookies_accept_all_string,
+       cookies_accept_all_string);
     EndSelect(fp0);

     /*




reply via email to

[Prev in Thread] Current Thread [Next in Thread]