diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 2 | ||||
-rw-r--r-- | src/ui/linkinfo.c | 22 |
2 files changed, 4 insertions, 20 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 1870efd6..fa035d86 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -239,7 +239,6 @@ enum iDocumentWidgetFlag { | |||
239 | rightWheelSwipe_DocumentWidgetFlag = iBit(20), | 239 | rightWheelSwipe_DocumentWidgetFlag = iBit(20), |
240 | eitherWheelSwipe_DocumentWidgetFlag = leftWheelSwipe_DocumentWidgetFlag | | 240 | eitherWheelSwipe_DocumentWidgetFlag = leftWheelSwipe_DocumentWidgetFlag | |
241 | rightWheelSwipe_DocumentWidgetFlag, | 241 | rightWheelSwipe_DocumentWidgetFlag, |
242 | // wheelSwipeFinished_DocumentWidgetFlag = iBit(21), | ||
243 | }; | 242 | }; |
244 | 243 | ||
245 | enum iDocumentLinkOrdinalMode { | 244 | enum iDocumentLinkOrdinalMode { |
@@ -250,7 +249,6 @@ enum iDocumentLinkOrdinalMode { | |||
250 | enum iWheelSwipeState { | 249 | enum iWheelSwipeState { |
251 | none_WheelSwipeState, | 250 | none_WheelSwipeState, |
252 | direct_WheelSwipeState, | 251 | direct_WheelSwipeState, |
253 | //inertia_WheelSwipeState, | ||
254 | }; | 252 | }; |
255 | 253 | ||
256 | struct Impl_DocumentWidget { | 254 | struct Impl_DocumentWidget { |
diff --git a/src/ui/linkinfo.c b/src/ui/linkinfo.c index 38da84c7..cb1404fc 100644 --- a/src/ui/linkinfo.c +++ b/src/ui/linkinfo.c | |||
@@ -95,24 +95,10 @@ iBool update_LinkInfo(iLinkInfo *d, const iGmDocument *doc, iGmLinkId linkId, in | |||
95 | if (showImage || showAudio) { | 95 | if (showImage || showAudio) { |
96 | appendFormat_String( | 96 | appendFormat_String( |
97 | &str, | 97 | &str, |
98 | "%s%s%s", | 98 | "%s%s", |
99 | // showHost ? (scheme == mailto_GmLinkScheme ? cstr_String(url) | 99 | showHost ? " \u2014" : "", |
100 | // : scheme != gemini_GmLinkScheme | 100 | format_CStr(showImage ? photo_Icon " %s " : "\U0001f3b5 %s", |
101 | // ? format_CStr("%s \u2014 %s", | 101 | cstr_Lang(showImage ? "link.hint.image" : "link.hint.audio"))); |
102 | // cstrCollect_String(upper_String( | ||
103 | // collectNewRange_String(parts.scheme))), | ||
104 | // cstr_Rangecc(parts.host)) | ||
105 | // : cstr_Rangecc(parts.host)) | ||
106 | // : "", | ||
107 | // showHost ? format_CStr("\x1b[1m%s\x1b[0m", cstr_Rangecc(parts.host)) : "", | ||
108 | showHost && (showImage || showAudio) ? " \u2014" : "", | ||
109 | showImage || showAudio | ||
110 | ? "" | ||
111 | : "", // escape_Color(linkColor_GmDocument(doc, linkId, domain_GmLinkPart)), | ||
112 | showImage || showAudio | ||
113 | ? format_CStr(showImage ? photo_Icon " %s " : "\U0001f3b5 %s", | ||
114 | cstr_Lang(showImage ? "link.hint.image" : "link.hint.audio")) | ||
115 | : ""); | ||
116 | } | 102 | } |
117 | } | 103 | } |
118 | if (flags & visited_GmLinkFlag) { | 104 | if (flags & visited_GmLinkFlag) { |