File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,13 @@ public class SubjectPage : Gtk.Box {
5454 icon_name = " document-edit-symbolic"
5555 };
5656
57- var header_bar = new Adw .HeaderBar ();
57+ var title_label = new Adw .WindowTitle (" " , " " );
58+
59+ var header_bar = new Adw .HeaderBar () {
60+ title_widget = title_label
61+ };
5862 header_bar.pack_end (menu_button );
5963 header_bar.pack_end (edit_subject_button );
60-
6164 header_bar.pack_start (toggle_button );
6265
6366 // TOP BOX
@@ -149,9 +152,11 @@ public class SubjectPage : Gtk.Box {
149152 if (subject == null ) {
150153 placeholder_stack. visible_child = placeholder;
151154 edit_subject_button. visible = false ;
155+ title_label. title = " " ;
152156 } else {
153157 placeholder_stack. visible_child = gtk_sw;
154158 edit_subject_button. visible = true ;
159+ title_label. title = subject. name;
155160 }
156161 }
157162
You can’t perform that action at this time.
0 commit comments