lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev patch: User Agent in Options Page (was Re: dejanews prob


From: Leonid Pauzner
Subject: Re: lynx-dev patch: User Agent in Options Page (was Re: dejanews problems?)
Date: Fri, 28 Aug 1998 01:39:16 +0400 (MSD)

> (27/08/1998 13:16) Laura Eaves:
>
> >If you build with forms-options, agent string is still not in the options 
> >menu
> .
> >Build --disable-forms-options.
> >Perhaps Leonid could put it in the new options stuff?
Already in. But we wait until Tom integrate the patch.
We have several people working on the same files
and it is time to refresh definitely.

> >Thanks in advance.
>
> May I try? :-)
>
> apply after latest patch0.3. If you haven't done yet, I can try to redo
> on a fresh dev.22.
>
> Sinan.
> *** LYOptions.c Thu Aug 27 20:15:30 1998
> --- lynx2-8-1.new/src/LYOptions.c       Thu Aug 27 20:26:13 1998
> ***************
> *** 3110,3115 ****
> --- 3110,3117 ----
>
>   static char * show_cursor_string = "show_cursor";
>
> + static char * user_agent_string = "user_agent";
> +
>   static OptValues bool_values[] = {
>         { FALSE,             "OFF",               "OFF"         },
>         { TRUE,              "ON",                "ON"          },
> ***************
> *** 3514,3519 ****
> --- 3516,3530 ----
>         }
>
>         /*
> +        * user_agent
> +        */
> +       if (!strcmp(data[i].tag, user_agent_string)) {
> +           FREE(user_agent_string);
                          \ It is static!  Certainly, LYUserAgent here.
> +           StrAllocCopy(user_agent_string, data[i].value);
> +           LYUserAgent = user_agent_string;
> +       }
> +
> +       /*
>          * save_options
>          */
>         if (!strcmp(data[i].tag, save_options_string)) {
> ***************
> *** 3568,3574 ****
>       if (need_reload == TRUE)  {
>           /* FIXME: currently dummy */
>       }
> -     LYpop(newdoc);
 Oh
>       return(NULLFILE);
>   }
>
> --- 3579,3584 ----
> ***************
> *** 3636,3643 ****
>        * save/reset
>        */
>       fprintf(fp0,"<p align=center>\n");
> !     fprintf(fp0,"[ <input type=\"submit\" value=\"Accept Changes\"> ] ");
> !     fprintf(fp0,"[ <input type=\"reset\" value=\"Reset Changes\"> ]<br>");
>       fprintf(fp0,"Back Arrow cancels changes<br>\n");
>
>       /*
> --- 3646,3655 ----
>        * save/reset
>        */
>       fprintf(fp0,"<p align=center>\n");
> !     fprintf(fp0,
> !        "[ <input type=\"submit\" name=\"submit\" value=\"Accept Changes\"> ]
> ");
> !     fprintf(fp0,
> !        "[ <input type=\"reset\" name=\"reset\" value=\"Reset Changes\"> 
> ]<br>
> ");
>       fprintf(fp0,"Back Arrow cancels changes<br>\n");
>
>       /*
> ***************
> *** 3917,3922 ****
> --- 3929,3945 ----
>         EndSelect(fp0);
>       }
>
> +     /*
> +      * user agent
> +      */
> +     if (!no_useragent) {
> +         fprintf(fp0,"\n<em>Advanced Options</em>\n");
 Ah!
> +
> +         PutLabel(fp0, "User Agent");
> +         PutTextInput(fp0, user_agent_string,
> +                   NOTEMPTY(LYUserAgent), 42, "");
> +     }
> +
>       /*
>        * save/reset
>        */
>      _________________________________________________________________
>
>    References:
>      * Re: lynx-dev dejanews problems?
>
>      * From: Laura Eaves <address@hidden>
>      _________________________________________________________________
>
>      * Prev: Re: lynx-dev dejanews problems?
>      * Next: Re: lynx-dev dejanews problems?
>      * Index(es):
>           + Main
>           + Thread
>      _________________________________________________________________
>
>    Lynx mailing list archives
>
>    [FLORA HOME] [LYNX Home]
>
>


reply via email to

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