summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-25 12:53:09 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-25 12:53:09 +0300
commitacf382fb36212d49601984813839a377b5f29afb (patch)
treed786c0aa3cad28a68ec36f9fdf4dc6a432416d2d /src/ui/documentwidget.c
parent17c37c3dfabc89c10888f1d39fc7b54d0f7b19dd (diff)
Use document top header as window title
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 3 insertions, 0 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
145static void fetch_DocumentWidget_(iDocumentWidget *d) { 148static void fetch_DocumentWidget_(iDocumentWidget *d) {