[4842] in SIPB bug reports
Mosaic patch
daemon@ATHENA.MIT.EDU (yoav@MIT.EDU)
Thu Sep 8 18:20:01 1994
From: yoav@MIT.EDU
Date: Thu, 8 Sep 1994 18:19:34 +0500
To: bug-sipb@MIT.EDU, yandros@MIT.EDU
okay.. so I was lame and never sent the patch I did
to bug-sipb. Well, here it is (so chad.. leave me alone :-)...
diff -r1.1 gui.c
302a303,337
> * name: doc_url_win_cb
> * purpose: read a document requested from the Document URL: field
> * inputs:
> * - char *directive: The directive; either "goto" or "newwin".
> * - char *url: The URL corresponding to the directive.
> * returns:
> * nothing
> * remarks:
> *
> ****************************************************************************/
> static XmxCallback (doc_url_win_cb)
> {
> char *url;
> mo_window *win = mo_fetch_window_by_id
> (XmxExtractUniqid ((int)client_data));
>
> url = XmxTextGetString (w);
> mo_convert_newlines_to_spaces (url);
> if (!strstr (url, ":"))
> {
> char *freeme = url;
> url = mo_url_canonicalize_local (url);
> free (freeme);
> }
>
> /* Make sure we have a window. */
> if (!win)
> win = mo_next_window (NULL);
> mo_access_document (win, url);
> XmUpdateDisplay (win->base);
>
> return;
> }
>
> /****************************************************************************
1237,1238c1272,1273
< XmxSetArg (XmNcursorPositionVisible, False);
< XmxSetArg (XmNeditable, False);
---
> XmxSetArg (XmNcursorPositionVisible, True);
> XmxSetArg (XmNeditable, True);
1239a1275
> XmxAddCallbackToText (win->url_text, doc_url_win_cb, 0);
2435a2472,2473
>
>
1237,1238c1272,1273
< XmxSetArg (XmNcursorPositionVisible, False);
< XmxSetArg (XmNeditable, False);
---
> XmxSetArg (XmNcursorPositionVisible, True);
> XmxSetArg (XmNeditable, True);
1239a1275
> XmxAddCallbackToText (win->url_text, doc_url_win_cb, 0);
2435a2472,2473
>
>
=================================
Anyway, this patch basically lets you edit the URL field in Mosaic and
automatically fetch the URL...
yoav
P.S. If you want me to submit this somewhere else, tell me...