[gnome-control-center] sound: Remove left-click behaviour work-around
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: Remove left-click behaviour work-around
- Date: Mon, 25 Jun 2012 12:34:20 +0000 (UTC)
commit 9859ffbc27aca0a4f1a58412233498cdf846da70
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 25 13:32:36 2012 +0100
sound: Remove left-click behaviour work-around
https://bugzilla.gnome.org/show_bug.cgi?id=678598
panels/sound/gvc-channel-bar.c | 12 ------------
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]