diff options
-rw-r--r-- | src/ui/documentwidget.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 4e53ba44..7687ec16 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -773,6 +773,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
773 | } | 773 | } |
774 | } | 774 | } |
775 | } | 775 | } |
776 | refresh_Widget(w); | ||
776 | } | 777 | } |
777 | else { | 778 | else { |
778 | postCommandf_App("open url:%s", | 779 | postCommandf_App("open url:%s", |
@@ -873,6 +874,7 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) { | |||
873 | /* TODO: Show status of an ongoing media request. */ | 874 | /* TODO: Show status of an ongoing media request. */ |
874 | const int flags = linkFlags_GmDocument(doc, run->linkId); | 875 | const int flags = linkFlags_GmDocument(doc, run->linkId); |
875 | const iRect linkRect = moved_Rect(run->visBounds, origin); | 876 | const iRect linkRect = moved_Rect(run->visBounds, origin); |
877 | iMediaRequest *mr = NULL; | ||
876 | if (flags & content_GmLinkFlag) { | 878 | if (flags & content_GmLinkFlag) { |
877 | fg = linkColor_GmDocument(doc, run->linkId); | 879 | fg = linkColor_GmDocument(doc, run->linkId); |
878 | if (!isEmpty_Rect(run->bounds)) { | 880 | if (!isEmpty_Rect(run->bounds)) { |
@@ -894,6 +896,15 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) { | |||
894 | deinit_String(&text); | 896 | deinit_String(&text); |
895 | } | 897 | } |
896 | } | 898 | } |
899 | else if (run->flags & endOfLine_GmRunFlag && | ||
900 | (mr = findMediaRequest_DocumentWidget_(d->widget, run->linkId)) != NULL) { | ||
901 | if (!isFinished_GmRequest(mr->req)) { | ||
902 | draw_Text(default_FontId, | ||
903 | topRight_Rect(linkRect), | ||
904 | linkColor_GmDocument(doc, run->linkId), | ||
905 | " \u2014 Fetching\u2026"); | ||
906 | } | ||
907 | } | ||
897 | else if (isHover) { | 908 | else if (isHover) { |
898 | const iGmLinkId linkId = d->widget->hoverLink->linkId; | 909 | const iGmLinkId linkId = d->widget->hoverLink->linkId; |
899 | const iString * url = linkUrl_GmDocument(doc, linkId); | 910 | const iString * url = linkUrl_GmDocument(doc, linkId); |