[gnome-chess] Don't include path in window title
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Don't include path in window title
- Date: Wed, 24 Jul 2013 03:37:51 +0000 (UTC)
commit e14e76abdaedb628f8a0d1050ce90410c523e093
Author: Chris Cummins <christopher e cummins intel com>
Date: Tue Jul 23 17:06:34 2013 +0100
Don't include path in window title
This transforms a window title of:
2013-05-24.png (/home/user/.local/share/glchess/history/2013/05/24) - Chess
into:
Chess - 2013-05-24.png
https://bugzilla.gnome.org/show_bug.cgi?id=704755
src/gnome-chess.vala | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 9a0ae2a..b5bff14 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -406,10 +406,9 @@ public class Application : Gtk.Application
else
{
var path = game_file.get_path ();
- window.title = /* Title of the window when explicitly loaded a file. The first argument is the
- * base name of the file (e.g. test.pgn), the second argument is the directory
- * (e.g. /home/fred) */
- _("%1$s (%2$s) - Chess").printf (Path.get_basename (path), Path.get_dirname
(path));
+ window.title = /* Title of the window when explicitly loaded a file. The argument is the
+ * base name of the file (e.g. test.pgn) */
+ _("Chess - %1$s").printf (Path.get_basename (path));
}
var model = (Gtk.ListStore) history_combo.model;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]