Skip to content

Commit

Permalink
HeaderBar: Set decoration_layout on construct
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten committed Dec 10, 2023
1 parent 97e15ef commit e802604
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,16 @@ namespace Terminal {

header = new Hdy.HeaderBar () {
show_close_button = true,
has_subtitle = false
has_subtitle = false,
decoration_layout = "",
decoration_layout_set = false
};
header.pack_end (menu_button);
header.pack_end (search_button);
header.set_custom_title (title_stack);

unowned Gtk.StyleContext header_context = header.get_style_context ();
header_context.add_class ("default-decoration");
header.decoration_layout = "";
is_fullscreen = false; // State will be restored later

notebook = new Granite.Widgets.DynamicNotebook.with_accellabels (
new Granite.AccelLabel.from_action_name (_("New Tab"), ACTION_PREFIX + ACTION_NEW_TAB)
Expand Down

0 comments on commit e802604

Please sign in to comment.