[gitg] Show repository path in header
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Show repository path in header
- Date: Sun, 14 Dec 2014 14:47:48 +0000 (UTC)
commit ca247ffcbb67f5765b57ddfb9b31ba08d3e78c8f
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Dec 14 15:47:34 2014 +0100
Show repository path in header
gitg/gitg-window.vala | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 7f46fe6..12852f3 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -351,6 +351,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
{
// set title
File? workdir = d_repository.get_workdir();
+ string name;
if (workdir != null)
{
@@ -362,11 +363,17 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
parent_path = parent_path.replace(Environment.get_home_dir(), "~");
}
- title = @"$(d_repository.name) ($parent_path) - gitg";
+ name = @"$(d_repository.name) ($parent_path)";
+
+ title = @"$name - gitg";
d_infobar.hide();
}
+ else
+ {
+ name = d_repository.name;
+ }
- d_header_bar.set_title(d_repository.name);
+ d_header_bar.set_title(name);
string? head_name = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]