diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 3 | ||||
-rw-r--r-- | src/ui/window.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 030a323b..cb530e9b 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -140,6 +140,9 @@ static void updateSource_DocumentWidget_(iDocumentWidget *d) { | |||
140 | deinit_String(&str); | 140 | deinit_String(&str); |
141 | updateVisible_DocumentWidget_(d); | 141 | updateVisible_DocumentWidget_(d); |
142 | refresh_Widget(as_Widget(d)); | 142 | refresh_Widget(as_Widget(d)); |
143 | setTitle_Window(get_Window(), | ||
144 | !isEmpty_String(title_GmDocument(d->doc)) ? title_GmDocument(d->doc) | ||
145 | : collectNewCStr_String("Lagrange")); | ||
143 | } | 146 | } |
144 | 147 | ||
145 | static void fetch_DocumentWidget_(iDocumentWidget *d) { | 148 | static void fetch_DocumentWidget_(iDocumentWidget *d) { |
diff --git a/src/ui/window.c b/src/ui/window.c index 6196a638..a110c5ad 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -90,7 +90,6 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { | |||
90 | else if (equal_Command(cmd, "document.changed")) { | 90 | else if (equal_Command(cmd, "document.changed")) { |
91 | iInputWidget *url = findWidget_App("url"); | 91 | iInputWidget *url = findWidget_App("url"); |
92 | setTextCStr_InputWidget(url, valuePtr_Command(cmd, "url")); | 92 | setTextCStr_InputWidget(url, valuePtr_Command(cmd, "url")); |
93 | setTitle_Window(get_Window(), text_InputWidget(url)); | ||
94 | updateTextCStr_LabelWidget(findChild_Widget(navBar, "reload"), reloadCStr_); | 93 | updateTextCStr_LabelWidget(findChild_Widget(navBar, "reload"), reloadCStr_); |
95 | return iFalse; | 94 | return iFalse; |
96 | } | 95 | } |