[banshee] [Banshee.Gui] Make Play/Pause action tooltip only show play or pause, not both depending on player s
- From: Alex Launi <alexlauni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Banshee.Gui] Make Play/Pause action tooltip only show play or pause, not both depending on player s
- Date: Thu, 2 Dec 2010 19:55:36 +0000 (UTC)
commit fd19891d6f233b321f3b1db22c433b00ef040c64
Author: Alex Launi <alex launi canonical com>
Date: Fri Nov 26 18:57:07 2010 -0500
[Banshee.Gui] Make Play/Pause action tooltip only show play or pause, not both depending on player state
https://bugzilla.gnome.org/show_bug.cgi?id=635889
.../Banshee.Gui/PlaybackActions.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
index 6121a09..25006c5 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
@@ -45,6 +45,7 @@ namespace Banshee.Gui
{
public class PlaybackActions : BansheeActionGroup
{
+ private string play_tooltip;
private Gtk.Action play_pause_action;
private PlaybackRepeatActions repeat_actions;
private PlaybackShuffleActions shuffle_actions;
@@ -60,11 +61,12 @@ namespace Banshee.Gui
public PlaybackActions () : base ("Playback")
{
ImportantByDefault = false;
+ play_tooltip = Catalog.GetString ("Play the current item");
Add (new ActionEntry [] {
new ActionEntry ("PlayPauseAction", null,
Catalog.GetString ("_Play"), "space",
- Catalog.GetString ("Play or pause the current item"), OnPlayPauseAction),
+ play_tooltip, OnPlayPauseAction),
new ActionEntry ("NextAction", null,
Catalog.GetString ("_Next"), "N",
@@ -189,12 +191,14 @@ namespace Banshee.Gui
{
play_pause_action.Label = Catalog.GetString ("_Pause");
play_pause_action.StockId = Gtk.Stock.MediaPause;
+ play_pause_action.Tooltip = Catalog.GetString ("Pause the current item");
}
private void ShowPlay ()
{
play_pause_action.Label = Catalog.GetString ("_Play");
play_pause_action.StockId = Gtk.Stock.MediaPlay;
+ play_pause_action.Tooltip = play_tooltip;
}
private void ShowStop ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]