From 286a707693f3ac4695279291482a7f142863b452 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Fri, 24 Sep 2021 18:59:42 +0300

Subject: [PATCH 1/1] GmDocument: Image link icon


src/defs.h | 1 +

src/gmdocument.c | 2 ++

2 files changed, 3 insertions(+)

diff --git a/src/defs.h b/src/defs.h

index f199fd2b..a81d57f1 100644

--- a/src/defs.h

+++ b/src/defs.h

@@ -157,6 +157,7 @@ iLocalDef int acceptKeyMod_ReturnKeyBehavior(int behavior) {

#define undo_Icon "\u23ea"

#define select_Icon "\u2b1a"

#define downAngle_Icon "\ufe40"

+#define photo_Icon "\U0001f5bb"

#if defined (iPlatformApple)

define shift_Icon "\u21e7"

diff --git a/src/gmdocument.c b/src/gmdocument.c

index 97c7b41b..22f409a6 100644

--- a/src/gmdocument.c

+++ b/src/gmdocument.c

@@ -508,6 +508,7 @@ static void doLayout_GmDocument_(iGmDocument *d) {

 static const char *magnifyingGlass = "\U0001f50d";

 static const char *pointingFinger  = "\U0001f449";

 static const char *uploadArrow     = upload_Icon;

 clear_Array(&d->layout);

 clearLinks_GmDocument_(d);

 clear_Array(&d->headings);

@@ -766,6 +767,7 @@ static void doLayout_GmDocument_(iGmDocument *d) {

                                          : scheme == finger_GmLinkScheme   ? pointingFinger

                                          : scheme == mailto_GmLinkScheme   ? envelope

                                          : link->flags & remote_GmLinkFlag ? globe

                                                                            : arrow);

         /* Custom link icon is shown on local Gemini links only. */

         if (!isEmpty_Range(&link->labelIcon)) {

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/patch/286a707693f3ac4695279291482a7f142863b452.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
25.220451 milliseconds
Gemini-to-HTML Time
0.674877 milliseconds

This content has been proxied by September (ba2dc).