diff options
author | Ronald Bultje <rbultje@src.gnome.org> | 2005-10-15 16:33:25 +0000 |
---|---|---|
committer | Ronald Bultje <rbultje@src.gnome.org> | 2005-10-15 16:33:25 +0000 |
commit | 1f64c9bb739170c5d3d645337fd6ccbb9e5f4c32 (patch) | |
tree | 0e8e5a80faf03a0c07113b7c2d8b07a1347a9a3a | |
parent | 05f4ad423a3d4f05c804f7b333328b21bc225f6c (diff) |
Make mousewheel sensitivity of applet slightly more aggressive, which
* applet.c: (gnome_volume_applet_setup), (gnome_volume_applet_key),
(cb_gconf):
Make mousewheel sensitivity of applet slightly more aggressive,
which should fix #318319. Also fix one more rounding error if
you used the arrow keys to change volume.
-rw-r--r-- | mixer/ChangeLog | 8 | ||||
-rw-r--r-- | mixer/applet.c | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/mixer/ChangeLog b/mixer/ChangeLog index 40cde45f3..f8a90ef3b 100644 --- a/mixer/ChangeLog +++ b/mixer/ChangeLog @@ -1,3 +1,11 @@ +2005-10-15 Ronald S. Bultje <rbultje@ronald.bitfreak.net> + + * applet.c: (gnome_volume_applet_setup), (gnome_volume_applet_key), + (cb_gconf): + Make mousewheel sensitivity of applet slightly more aggressive, + which should fix #318319. Also fix one more rounding error if + you used the arrow keys to change volume. + 2005-10-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net> * applet.c: (gnome_volume_applet_scroll), diff --git a/mixer/applet.c b/mixer/applet.c index 8a77a2179..bc7581f22 100644 --- a/mixer/applet.c +++ b/mixer/applet.c @@ -397,7 +397,7 @@ gnome_volume_applet_setup (GnomeVolumeApplet *applet, first_track = g_list_first (applet->tracks)->data; /* tell the dock */ - adj = gtk_adjustment_new (50, 0, 100, 2, 5, 0); + adj = gtk_adjustment_new (50, 0, 100, 4, 10, 0); gtk_adjustment_set_value (GTK_ADJUSTMENT (adj), gnome_volume_applet_get_volume (applet->mixer, first_track)); @@ -828,7 +828,7 @@ gnome_volume_applet_key (GtkWidget *widget, case GDK_Up: case GDK_Down: { GtkAdjustment *adj = gtk_range_get_adjustment (applet->dock->scale); - gint volume = adj->value, increment; + gfloat volume = adj->value, increment; if (event->keyval == GDK_Up || event->keyval == GDK_Down) increment = adj->step_increment; @@ -1189,7 +1189,7 @@ cb_gconf (GConfClient *client, first_track = g_list_first (active_tracks)->data; /* dock */ - adj = gtk_adjustment_new (50, 0, 100, 2, 5, 0); + adj = gtk_adjustment_new (50, 0, 100, 4, 10, 0); gtk_adjustment_set_value (GTK_ADJUSTMENT (adj), gnome_volume_applet_get_volume (applet->mixer, first_track)); |