summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-08 14:06:01 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-08 14:06:01 +0200
commit017d5c45521b3fdd9e1ccf486dafef5595e411e5 (patch)
tree66c2ec008f5abb64ff970a30e3ffb5bb26270dd2
parentbb53ff49396cae88836ff391fd20589a687ae83f (diff)
DocumentWidget: Context menu for Gopher links
No need for a "default browser" any more.
-rw-r--r--src/ui/documentwidget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 94168d28..a4bf38dc 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1944,8 +1944,9 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
1944 if (d->contextLink) { 1944 if (d->contextLink) {
1945 const iString *linkUrl = linkUrl_GmDocument(d->doc, d->contextLink->linkId); 1945 const iString *linkUrl = linkUrl_GmDocument(d->doc, d->contextLink->linkId);
1946 const iRangecc scheme = urlScheme_String(linkUrl); 1946 const iRangecc scheme = urlScheme_String(linkUrl);
1947 if (willUseProxy_App(scheme) || equalCase_Rangecc(scheme, "gemini")) { 1947 if (willUseProxy_App(scheme) || equalCase_Rangecc(scheme, "gemini") ||
1948 /* Regular Gemini links. */ 1948 equalCase_Rangecc(scheme, "gopher")) {
1949 /* Regular links that we can open. */
1949 pushBackN_Array( 1950 pushBackN_Array(
1950 &items, 1951 &items,
1951 (iMenuItem[]){ 1952 (iMenuItem[]){