diff options
-rw-r--r-- | po/en.po | 3 | ||||
-rw-r--r-- | src/ui/documentwidget.c | 4 | ||||
-rw-r--r-- | src/ui/window.c | 1 |
3 files changed, 6 insertions, 2 deletions
@@ -232,6 +232,9 @@ msgstr "Copy" | |||
232 | msgid "menu.paste" | 232 | msgid "menu.paste" |
233 | msgstr "Paste" | 233 | msgstr "Paste" |
234 | 234 | ||
235 | msgid "menu.select.clear" | ||
236 | msgstr "Clear Selection" | ||
237 | |||
235 | msgid "menu.copy.pagelink" | 238 | msgid "menu.copy.pagelink" |
236 | msgstr "Copy Link to Page" | 239 | msgstr "Copy Link to Page" |
237 | 240 | ||
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 105a7158..99767584 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2947,7 +2947,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2947 | d->copyMenu = makeMenu_Widget(w, (iMenuItem[]){ | 2947 | d->copyMenu = makeMenu_Widget(w, (iMenuItem[]){ |
2948 | { clipCopy_Icon " ${menu.copy}", 0, 0, "copy" }, | 2948 | { clipCopy_Icon " ${menu.copy}", 0, 0, "copy" }, |
2949 | { "---", 0, 0, NULL }, | 2949 | { "---", 0, 0, NULL }, |
2950 | { close_Icon " Clear Selection", 0, 0, "document.select arg:0" }, | 2950 | { close_Icon " ${menu.select.clear}", 0, 0, "document.select arg:0" }, |
2951 | }, 3); | 2951 | }, 3); |
2952 | setFlags_Widget(d->copyMenu, noFadeBackground_WidgetFlag, iTrue); | 2952 | setFlags_Widget(d->copyMenu, noFadeBackground_WidgetFlag, iTrue); |
2953 | openMenu_Widget(d->copyMenu, pos_Click(&d->click)); | 2953 | openMenu_Widget(d->copyMenu, pos_Click(&d->click)); |
@@ -3756,7 +3756,7 @@ static void draw_DocumentWidget_(const iDocumentWidget *d) { | |||
3756 | if (flags_Widget(w) & touchDrag_WidgetFlag) { | 3756 | if (flags_Widget(w) & touchDrag_WidgetFlag) { |
3757 | iString msg; | 3757 | iString msg; |
3758 | init_String(&msg); | 3758 | init_String(&msg); |
3759 | format_String(&msg, "Selecting: drag and tap"); | 3759 | format_String(&msg, "Selecting: drag and tap"); /* TODO: Needed? (N bytes selected?) */ |
3760 | fillRect_Paint(&ctx.paint, (iRect){ topLeft_Rect(bounds), | 3760 | fillRect_Paint(&ctx.paint, (iRect){ topLeft_Rect(bounds), |
3761 | init_I2(width_Rect(bounds), lineHeight_Text(uiLabelBold_FontId))}, | 3761 | init_I2(width_Rect(bounds), lineHeight_Text(uiLabelBold_FontId))}, |
3762 | uiTextAction_ColorId); | 3762 | uiTextAction_ColorId); |
diff --git a/src/ui/window.c b/src/ui/window.c index 0a5bab6f..716c1d05 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1078,6 +1078,7 @@ static void setupUserInterface_Window(iWindow *d) { | |||
1078 | { "${menu.page.copysource}", 'c', KMOD_PRIMARY, "copy" }, | 1078 | { "${menu.page.copysource}", 'c', KMOD_PRIMARY, "copy" }, |
1079 | { download_Icon " " saveToDownloads_Label, SDLK_s, KMOD_PRIMARY, "document.save" } }, | 1079 | { download_Icon " " saveToDownloads_Label, SDLK_s, KMOD_PRIMARY, "document.save" } }, |
1080 | 14); | 1080 | 14); |
1081 | setAlignVisually_LabelWidget((iLabelWidget *) reload, iTrue); | ||
1081 | } | 1082 | } |
1082 | setId_Widget(as_Widget(reload), "reload"); | 1083 | setId_Widget(as_Widget(reload), "reload"); |
1083 | addChildFlags_Widget(as_Widget(url), iClob(reload), embedFlags | moveToParentRightEdge_WidgetFlag); | 1084 | addChildFlags_Widget(as_Widget(url), iClob(reload), embedFlags | moveToParentRightEdge_WidgetFlag); |