[banshee] ThickClient: Append 'Banshee' to window title
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] ThickClient: Append 'Banshee' to window title
- Date: Sun, 25 Mar 2012 02:25:28 +0000 (UTC)
commit f5fc60f1563a756224f2b728460f7fc651f83ad4
Author: Jensen Somers <jensen jsomers be>
Date: Sun Mar 25 03:21:38 2012 +0100
ThickClient: Append 'Banshee' to window title
The name of the app was being replaced entirely in the window
title by the information of the track. With this commit, the
app name will still be appended at the end, like it is commonly
done by other apps in the desktop.
Signed-off-by: Alexander Kojevnikov <alexk gnome org>
.../Banshee.Gui/BaseClientWindow.cs | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
index 1428a7a..cf7c2f9 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
@@ -196,14 +196,17 @@ namespace Banshee.Gui
protected virtual void UpdateTitle ()
{
+ string media_player = Catalog.GetString ("Banshee Media Player");
+
TrackInfo track = ServiceManager.PlayerEngine.CurrentTrack;
if (track != null) {
// Translators: this is the window title when a track is playing
// {0} is the track title, {1} is the artist name
- Title = String.Format (Catalog.GetString ("{0} by {1}"),
+ string track_artist = String.Format (Catalog.GetString ("{0} by {1}"),
track.DisplayTrackTitle, track.DisplayArtistName);
+ Title = String.Format ("{0} - {1}", track_artist, media_player);
} else {
- Title = Catalog.GetString ("Banshee Media Player");
+ Title = media_player;
}
OnTitleChanged ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]