[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 01/01: Improve volume scale increments

noreply at xfce.org noreply at xfce.org
Thu Nov 23 13:27:54 CET 2017


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-pulseaudio-plugin.

commit 6f6fec91bfb47b6024a625c13ba395f362086953
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Thu Nov 23 07:27:49 2017 -0500

    Improve volume scale increments
---
 panel-plugin/pulseaudio-config.c | 4 ++--
 panel-plugin/scalemenuitem.c     | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/pulseaudio-config.c b/panel-plugin/pulseaudio-config.c
index 8c9ca77..2cc23e9 100644
--- a/panel-plugin/pulseaudio-config.c
+++ b/panel-plugin/pulseaudio-config.c
@@ -45,8 +45,8 @@
 
 #define DEFAULT_ENABLE_KEYBOARD_SHORTCUTS         TRUE
 #define DEFAULT_SHOW_NOTIFICATIONS                TRUE
-#define DEFAULT_VOLUME_STEP                       6
-#define DEFAULT_VOLUME_MAX                        153
+#define DEFAULT_VOLUME_STEP                       5
+#define DEFAULT_VOLUME_MAX                        150
 
 #ifdef HAVE_MPRIS2
 #define DEFAULT_ENABLE_MPRIS                      TRUE
diff --git a/panel-plugin/scalemenuitem.c b/panel-plugin/scalemenuitem.c
index bdc252a..1503e84 100644
--- a/panel-plugin/scalemenuitem.c
+++ b/panel-plugin/scalemenuitem.c
@@ -119,6 +119,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_widget_set_size_request (priv->scale, 100, -1);
   gtk_range_set_inverted (GTK_RANGE(priv->scale), FALSE);
   gtk_scale_set_draw_value (GTK_SCALE(priv->scale), FALSE);
+  gtk_range_set_round_digits(GTK_RANGE(priv->scale), 0);
 
   if (max > 100.0)
     gtk_scale_add_mark (GTK_SCALE (priv->scale), 100.0, GTK_POS_BOTTOM, NULL);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list