Merge pull request #75 from cagatay-y/fix-title

Set window title from the correct place
This commit is contained in:
Bleak Grey 2018-08-27 15:16:12 +03:00 committed by GitHub
commit 7b3dbfe7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,6 +62,7 @@ public class Tootle.MainWindow: Gtk.Window {
header = new Gtk.HeaderBar (); header = new Gtk.HeaderBar ();
header.show_close_button = true; header.show_close_button = true;
header.title = "Tootle";
header.custom_title = button_mode; header.custom_title = button_mode;
header.pack_start (button_back); header.pack_start (button_back);
header.pack_start (button_toot); header.pack_start (button_toot);
@ -92,7 +93,6 @@ public class Tootle.MainWindow: Gtk.Window {
public MainWindow (Gtk.Application application) { public MainWindow (Gtk.Application application) {
Object (application: application, Object (application: application,
icon_name: "com.github.bleakgrey.tootle", icon_name: "com.github.bleakgrey.tootle",
title: "Tootle",
resizable: true resizable: true
); );
window_position = WindowPosition.CENTER; window_position = WindowPosition.CENTER;