summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-06-25 12:32:36 (GMT)
committerBastien Nocera <hadess@hadess.net>2012-06-25 12:33:31 (GMT)
commit9859ffbc27aca0a4f1a58412233498cdf846da70 (patch)
tree80951ad2d8ad7703f0042d9d6d0b3b28b1d3e69a
parentdd2e8ed5676b2045497e25247049c57b2ddba4d9 (diff)
downloadgnome-control-center-9859ffbc27aca0a4f1a58412233498cdf846da70.zip
gnome-control-center-9859ffbc27aca0a4f1a58412233498cdf846da70.tar.xz
sound: Remove left-click behaviour work-around
https://bugzilla.gnome.org/show_bug.cgi?id=678598
-rw-r--r--panels/sound/gvc-channel-bar.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/panels/sound/gvc-channel-bar.c b/panels/sound/gvc-channel-bar.c
index ffcaf07..2314d9a 100644
--- a/panels/sound/gvc-channel-bar.c
+++ b/panels/sound/gvc-channel-bar.c
@@ -382,14 +382,6 @@ on_scale_button_press_event (GtkWidget *widget,
GdkEventButton *event,
GvcChannelBar *bar)
{
- /* HACK: we want the behaviour you get with the middle button, so we
- * mangle the event. clicking with other buttons moves the slider in
- * step increments, clicking with the middle button moves the slider to
- * the location of the click.
- */
- if (event->button == 1)
- event->button = 2;
-
bar->priv->click_lock = TRUE;
return FALSE;
@@ -403,10 +395,6 @@ on_scale_button_release_event (GtkWidget *widget,
GtkAdjustment *adj;
gdouble value;
- /* HACK: see on_scale_button_press_event() */
- if (event->button == 1)
- event->button = 2;
-
bar->priv->click_lock = FALSE;
adj = gtk_range_get_adjustment (GTK_RANGE (widget));