diff --git a/src/subject-page.vala b/src/subject-page.vala index 00184c7..5f557fd 100644 --- a/src/subject-page.vala +++ b/src/subject-page.vala @@ -54,10 +54,13 @@ public class SubjectPage : Gtk.Box { icon_name = "document-edit-symbolic" }; - var header_bar = new Adw.HeaderBar (); + var title_label = new Adw.WindowTitle ("", ""); + + var header_bar = new Adw.HeaderBar () { + title_widget = title_label + }; header_bar.pack_end (menu_button); header_bar.pack_end (edit_subject_button); - header_bar.pack_start (toggle_button); //TOP BOX @@ -149,9 +152,11 @@ public class SubjectPage : Gtk.Box { if (subject == null) { placeholder_stack.visible_child = placeholder; edit_subject_button.visible = false; + title_label.title = ""; } else { placeholder_stack.visible_child = gtk_sw; edit_subject_button.visible = true; + title_label.title = subject.name; } }