1
From a16a8bb41090233a28778e45f277e94de091f773 Mon Sep 17 00:00:00 2001
2
From: Jonathan Matthew <jonathan@d14n.org>
3
Date: Wed, 27 Jun 2012 03:04:44 +0000
4
Subject: header: remove left-click workaround for gtk+ 3.5+ (bug #678923)
6
GtkScale has the right behaviour now. Keep the workaround for
9
diff --git a/widgets/rb-header.c b/widgets/rb-header.c
10
index b5e8e7a..eeb4510 100644
11
--- a/widgets/rb-header.c
12
+++ b/widgets/rb-header.c
13
@@ -875,12 +875,14 @@ slider_press_callback (GtkWidget *widget,
14
header->priv->latest_set_time = -1;
15
g_object_notify (G_OBJECT (header), "slider-dragging");
17
+#if !GTK_CHECK_VERSION(3,5,0)
18
/* HACK: we want the behaviour you get with the middle button, so we
19
* mangle the event. clicking with other buttons moves the slider in
20
* step increments, clicking with the middle button moves the slider to
21
* the location of the click.
28
@@ -948,8 +950,10 @@ slider_release_callback (GtkWidget *widget,
29
GdkEventButton *event,
32
+#if !GTK_CHECK_VERSION(3,5,0)
33
/* HACK: see slider_press_callback */
37
if (header->priv->slider_dragging == FALSE) {
38
rb_debug ("slider is not dragging");