fix 'gtk_window_set_titlebar() called on a realized window' warning

This commit is contained in:
martensitingale 2018-05-28 23:36:37 +00:00
parent a844e9f5dc
commit 0d1b8f5285
1 changed files with 1 additions and 1 deletions

View File

@ -34,6 +34,7 @@ public class Tootle.MainWindow: Gtk.Window {
primary_stack.hexpand = true;
primary_stack.vexpand = true;
header = new Tootle.HeaderBar ();
set_titlebar (header);
grid = new Gtk.Grid ();
grid.set_size_request (400, 500);
@ -50,7 +51,6 @@ public class Tootle.MainWindow: Gtk.Window {
title: "Tootle",
resizable: true
);
set_titlebar (header);
window_position = WindowPosition.CENTER;
Tootle.accounts.switched.connect(on_account_switched);