[rhythmbox] shell-player: make the play button tooltip more accurate (bug #424878)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] shell-player: make the play button tooltip more accurate (bug #424878)
- Date: Fri, 1 Jan 2010 10:12:08 +0000 (UTC)
commit 052413c7f8a3c97b548a276086f4581b773bc512
Author: John Daiker <daikerjohn gmail com>
Date: Fri Jan 1 20:10:55 2010 +1000
shell-player: make the play button tooltip more accurate (bug #424878)
Make it say 'pause playback' rather than 'stop playback' when that's
what it will do.
shell/rb-shell-player.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/shell/rb-shell-player.c b/shell/rb-shell-player.c
index 0195ed0..4374de5 100644
--- a/shell/rb-shell-player.c
+++ b/shell/rb-shell-player.c
@@ -3718,7 +3718,11 @@ rb_shell_player_playing_changed_cb (RBShellPlayer *player,
action = gtk_action_group_get_action (player->priv->actiongroup,
"ControlPlay");
if (playing) {
- tooltip = g_strdup (_("Stop playback"));
+ if (rb_source_can_pause (player->priv->source)) {
+ tooltip = g_strdup (_("Pause playback"));
+ } else {
+ tooltip = g_strdup (_("Stop playback"));
+ }
} else {
tooltip = g_strdup (_("Start playback"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]