summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c2
-rw-r--r--src/ui/scrollwidget.c2
-rw-r--r--src/ui/widget.c2
-rw-r--r--src/ui/window.c2
4 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 3bb66be6..4cd0ac18 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -247,7 +247,7 @@ static void checkResponseCode_DocumentWidget_(iDocumentWidget *d) {
247 switch (status_GmRequest(d->request)) { 247 switch (status_GmRequest(d->request)) {
248 case redirectTemporary_GmStatusCode: 248 case redirectTemporary_GmStatusCode:
249 case redirectPermanent_GmStatusCode: 249 case redirectPermanent_GmStatusCode:
250 postCommandf_App("open url:%s", cstr_String(meta_GmRequest(d->request))); 250 postCommandf_App("open redirect:1 url:%s", cstr_String(meta_GmRequest(d->request)));
251 iReleasePtr(&d->request); 251 iReleasePtr(&d->request);
252 break; 252 break;
253 default: 253 default:
diff --git a/src/ui/scrollwidget.c b/src/ui/scrollwidget.c
index 1961677b..65b20a28 100644
--- a/src/ui/scrollwidget.c
+++ b/src/ui/scrollwidget.c
@@ -115,7 +115,7 @@ static void draw_ScrollWidget_(const iScrollWidget *d) {
115 iPaint p; 115 iPaint p;
116 init_Paint(&p); 116 init_Paint(&p);
117 drawRect_Paint(&p, bounds, black_ColorId); 117 drawRect_Paint(&p, bounds, black_ColorId);
118 fillRect_Paint(&p, shrunk_Rect(thumbRect_ScrollWidget_(d), one_I2()), 118 fillRect_Paint(&p, shrunk_Rect(thumbRect_ScrollWidget_(d), init1_I2(gap_UI / 2)),
119 isPressed ? orange_ColorId : gray50_ColorId); 119 isPressed ? orange_ColorId : gray50_ColorId);
120 } 120 }
121} 121}
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 86d2e195..69509e33 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -74,6 +74,7 @@ void destroy_Widget(iWidget *d) {
74 rootData_.pendingDestruction = new_PtrSet(); 74 rootData_.pendingDestruction = new_PtrSet();
75 } 75 }
76 insert_PtrSet(rootData_.pendingDestruction, d); 76 insert_PtrSet(rootData_.pendingDestruction, d);
77 postRefresh_App();
77} 78}
78 79
79void setId_Widget(iWidget *d, const char *id) { 80void setId_Widget(iWidget *d, const char *id) {
@@ -449,6 +450,7 @@ iAny *removeChild_Widget(iWidget *d, iAnyObject *child) {
449 } 450 }
450 iAssert(found); 451 iAssert(found);
451 ((iWidget *) child)->parent = NULL; 452 ((iWidget *) child)->parent = NULL;
453 postRefresh_App();
452 return child; 454 return child;
453} 455}
454 456
diff --git a/src/ui/window.c b/src/ui/window.c
index 2d030dcc..896b1e66 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -86,7 +86,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
86 iInputWidget *url = findWidget_App("url"); 86 iInputWidget *url = findWidget_App("url");
87 setTextCStr_InputWidget(url, valuePtr_Command(cmd, "url")); 87 setTextCStr_InputWidget(url, valuePtr_Command(cmd, "url"));
88 setTitle_Window(get_Window(), text_InputWidget(url)); 88 setTitle_Window(get_Window(), text_InputWidget(url));
89 return iTrue; 89 return iFalse;
90 } 90 }
91 return iFalse; 91 return iFalse;
92} 92}