summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-28 17:48:38 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-28 17:48:38 +0300
commit87b5dbd9c0393e787d2499d796486d3293f17214 (patch)
tree556f0b6b6a0188fdf9bd02275f796656ef428e86 /src/ui/documentwidget.c
parent408597bd4f71a13a511b6af33601dff0be2ed317 (diff)
Working on multiple UI roots
Root focus switching and opening links in the other root.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 2f20958f..1d6c340c 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -845,7 +845,8 @@ static void updateVisible_DocumentWidget_(iDocumentWidget *d) {
845} 845}
846 846
847static void updateWindowTitle_DocumentWidget_(const iDocumentWidget *d) { 847static void updateWindowTitle_DocumentWidget_(const iDocumentWidget *d) {
848 iLabelWidget *tabButton = tabPageButton_Widget(findWidget_App("doctabs"), d); 848 iLabelWidget *tabButton = tabPageButton_Widget(findChild_Widget(root_Widget(constAs_Widget(d)),
849 "doctabs"), d);
849 if (!tabButton) { 850 if (!tabButton) {
850 /* Not part of the UI at the moment. */ 851 /* Not part of the UI at the moment. */
851 return; 852 return;
@@ -2868,8 +2869,16 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
2868 { openTabBg_Icon " ${link.newtab.background}", 2869 { openTabBg_Icon " ${link.newtab.background}",
2869 0, 2870 0,
2870 0, 2871 0,
2871 format_CStr("!open newtab:2 url:%s", cstr_String(linkUrl)) } }, 2872 format_CStr("!open newtab:2 url:%s", cstr_String(linkUrl)) },
2872 2); 2873 { "${link.side}",
2874 0,
2875 0,
2876 format_CStr("!open newtab:4 url:%s", cstr_String(linkUrl)) },
2877 { "${link.side.newtab}",
2878 0,
2879 0,
2880 format_CStr("!open newtab:5 url:%s", cstr_String(linkUrl)) } },
2881 4);
2873 } 2882 }
2874 else if (!willUseProxy_App(scheme)) { 2883 else if (!willUseProxy_App(scheme)) {
2875 pushBack_Array( 2884 pushBack_Array(