[gitg] window: fix title
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] window: fix title
- Date: Mon, 21 Dec 2015 17:37:55 +0000 (UTC)
commit 9d10e02a538dc6ed0be006301a96cb08be16715d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Dec 21 18:37:19 2015 +0100
window: fix title
Ensure we first set the title and then the headerbar title since
setting the title will also set the headerbar title
gitg/gitg-window.vala | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index d189ef1..730c970 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -392,7 +392,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
var parent_path = Utils.replace_home_dir_with_tilde(workdir.get_parent());
title = @"$(d_repository.name) ($parent_path)";
- windowtitle = @"$name - gitg";
+ windowtitle = @"$(d_repository.name) - gitg";
}
else
{
@@ -420,15 +420,14 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
if (Gitg.PlatformSupport.use_native_window_controls())
{
- d_header_bar.set_title(subtitle);
this.title = title;
+ d_header_bar.set_title(subtitle);
}
else
{
+ this.title = windowtitle;
d_header_bar.set_title(title);
d_header_bar.set_subtitle(subtitle);
-
- this.title = windowtitle;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]