[rhythmbox] shell-player: don't disable the volume control actions (bug #592455)



commit 9c7730cadd274bf71c2930b914de24769b3e0558
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Feb 22 23:17:50 2013 +1000

    shell-player: don't disable the volume control actions (bug #592455)
    
    Having accelerator keys that also control other widgets doesn't
    work so well when the associated actions get disabled sometimes.

 shell/rb-shell-player.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/shell/rb-shell-player.c b/shell/rb-shell-player.c
index 3ec2128..88b6c93 100644
--- a/shell/rb-shell-player.c
+++ b/shell/rb-shell-player.c
@@ -2508,7 +2508,6 @@ rb_shell_player_sync_volume (RBShellPlayer *player,
                             gboolean notify,
                             gboolean set_volume)
 {
-       GtkAction *action;
        RhythmDBEntry *entry;
 
        if (player->priv->volume <= 0.0){
@@ -2517,14 +2516,6 @@ rb_shell_player_sync_volume (RBShellPlayer *player,
                player->priv->volume = 1.0;
        }
 
-       action = gtk_action_group_get_action (player->priv->actiongroup,
-                                             "ControlVolumeUp");
-       g_object_set (G_OBJECT (action), "sensitive", player->priv->volume < 0.9999, NULL);
-
-       action = gtk_action_group_get_action (player->priv->actiongroup,
-                                             "ControlVolumeDown");
-       g_object_set (G_OBJECT (action), "sensitive", player->priv->volume > 0.0001, NULL);
-
        if (set_volume) {
                rb_player_set_volume (player->priv->mmplayer,
                                      player->priv->mute ? 0.0 : player->priv->volume);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]