[gnumeric] Make mouse wheel scrolling work again with gtk+-3.4. [#675089]
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Make mouse wheel scrolling work again with gtk+-3.4. [#675089]
- Date: Sun, 10 Jun 2012 09:02:53 +0000 (UTC)
commit 92f85fa8473fe94e3598cb029a945a0c8f3e9dc3
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Jun 10 11:01:19 2012 +0200
Make mouse wheel scrolling work again with gtk+-3.4. [#675089]
ChangeLog | 5 +++++
NEWS | 1 +
src/wbc-gtk.c | 6 +++++-
3 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4ba2e29..5bbe9a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-10 Jean Brefort <jean brefort normalesup org>
+
+ * src/wbc-gtk.c (cb_scroll_wheel): make mouse wheel scrolling work
+ again with gtk+-3.4. [#675089]
+
2012-06-05 Jean Brefort <jean brefort normalesup org>
* src/item-bar.c (ib_draw_cell): make selction background visible. [#648676]
diff --git a/NEWS b/NEWS
index df25e7f..f688779 100644
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,7 @@ Andreas:
Jean:
* Fix graph series headers when a multiple selection is used. [#675913]
* Make selction background visible. [#648676]
+ * Make mouse wheel scrolling work again with gtk+-3.4. [#675089]
Morten:
* Minor doc improvement for non-C locales. [Part of #675000]
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index efd0201..723581f 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -2205,7 +2205,11 @@ cb_scroll_wheel (GtkWidget *w, GdkEventScroll *event,
gboolean go_back = (event->direction == GDK_SCROLL_UP ||
event->direction == GDK_SCROLL_LEFT);
- if (!pane || !gtk_widget_get_realized (w))
+ if (!pane || !gtk_widget_get_realized (w)
+#if GTK_CHECK_VERSION(3,4,0)
+ || event->direction == GDK_SCROLL_SMOOTH
+#endif
+ )
return FALSE;
if ((event->state & GDK_MOD1_MASK))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]