[Xfce4-commits] <parole:bluesabre/gtk3> Reduce mousewheel volume-steps from 10% to 5% for better control

Simon Steinbeiss noreply at xfce.org
Sun Aug 11 15:17:34 CEST 2013


Updating branch refs/heads/bluesabre/gtk3
         to 908c45c4fe3eab9d04ff60659a329d8942806fe2 (commit)
       from 27625e3d4fb76e1245b651db777489af367b73bd (commit)

commit 908c45c4fe3eab9d04ff60659a329d8942806fe2
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Mar 29 14:41:27 2013 +0100

    Reduce mousewheel volume-steps from 10% to 5% for better control

 src/parole-player.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/parole-player.c b/src/parole-player.c
index e6f436e..4c4d09c 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -2250,7 +2250,7 @@ parole_player_volume_up (GtkWidget *widget, ParolePlayer *player)
 {
     gdouble value;
     value = gtk_scale_button_get_value (GTK_SCALE_BUTTON (player->priv->volume));
-    gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value + 0.1);
+    gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value + 0.05);
 }
 
 void
@@ -2258,7 +2258,7 @@ parole_player_volume_down (GtkWidget *widget, ParolePlayer *player)
 {
     gdouble value;
     value = gtk_scale_button_get_value (GTK_SCALE_BUTTON (player->priv->volume));
-    gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value - 0.1);
+    gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value - 0.05);
 }
 
 void parole_player_volume_mute (GtkWidget *widget, ParolePlayer *player)


More information about the Xfce4-commits mailing list