[goobox] fixed the progress bar behavior when clicking on it



commit 4d93d501758edadd1ee9936abb18f2003f726fb4
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Dec 4 16:13:59 2012 +0100

    fixed the progress bar behavior when clicking on it

 src/goo-player-info.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/goo-player-info.c b/src/goo-player-info.c
index e3b774f..caed7f7 100644
--- a/src/goo-player-info.c
+++ b/src/goo-player-info.c
@@ -261,16 +261,6 @@ time_scale_button_press_cb (GtkRange         *range,
 			    GdkEventButton   *event,
 			    GooPlayerInfo    *info)
 {
-        /* In an audio player when clicking on the progress bar the user expect
-         * to jump to the specified position directly instead of scrolling one
-         * page up or down as happens by default in Gtk+.  The button 2
-         * behavior is what we want by default for button 1. */
-
-        if (event->button == 1)
-                event->button = 2;
-        else if (event->button == 2)
-                event->button = 1;
-
 	info->priv->dragging = TRUE;
 	info->priv->update_id = g_timeout_add (UPDATE_TIMEOUT,
 					       update_time_label_cb,
@@ -284,14 +274,6 @@ time_scale_button_release_cb (GtkRange         *range,
 			      GdkEventButton   *event,
 			      GooPlayerInfo    *info)
 {
-        /* Swap button 1 and 2 behaviors, see time_scale_button_press_cb
-         * for an explanation. */
-
-        if (event->button == 1)
-                event->button = 2;
-        else if (event->button == 2)
-                event->button = 1;
-
 	if (info->priv->update_id != 0) {
 		g_source_remove (info->priv->update_id);
 		info->priv->update_id = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]