[rhythmbox] header: remove left-click workaround for gtk+ 3.5+ (bug #678923)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] header: remove left-click workaround for gtk+ 3.5+ (bug #678923)
- Date: Wed, 27 Jun 2012 03:07:48 +0000 (UTC)
commit a16a8bb41090233a28778e45f277e94de091f773
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Jun 27 13:04:44 2012 +1000
header: remove left-click workaround for gtk+ 3.5+ (bug #678923)
GtkScale has the right behaviour now. Keep the workaround for
older versions.
widgets/rb-header.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/widgets/rb-header.c b/widgets/rb-header.c
index b5e8e7a..eeb4510 100644
--- a/widgets/rb-header.c
+++ b/widgets/rb-header.c
@@ -875,12 +875,14 @@ slider_press_callback (GtkWidget *widget,
header->priv->latest_set_time = -1;
g_object_notify (G_OBJECT (header), "slider-dragging");
+#if !GTK_CHECK_VERSION(3,5,0)
/* 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.
*/
event->button = 2;
+#endif
return FALSE;
@@ -948,8 +950,10 @@ slider_release_callback (GtkWidget *widget,
GdkEventButton *event,
RBHeader *header)
{
+#if !GTK_CHECK_VERSION(3,5,0)
/* HACK: see slider_press_callback */
event->button = 2;
+#endif
if (header->priv->slider_dragging == FALSE) {
rb_debug ("slider is not dragging");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]