[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Wed Mar 4 09:34:03 PST 2015
vcl/unx/gtk/window/gtksalframe.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 6727b20c71962eb41e4f878bd932902fa13e315f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Mar 4 17:33:28 2015 +0000
make wheel scrolling work under gtk3
Change-Id: I8a0482abcedd07006d6229c073f89ce0e22e4699
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index 9b868ac..71bddc2 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -3247,6 +3247,12 @@ gboolean GtkSalFrame::signalScroll( GtkWidget*, GdkEvent* pEvent, gpointer frame
GtkSalFrame* pThis = (GtkSalFrame*)frame;
GdkEventScroll* pSEvent = reinterpret_cast<GdkEventScroll*>(pEvent);
+#if GTK_CHECK_VERSION(3,0,0)
+ //TODO: do something less feeble here
+ if (pSEvent->direction == GDK_SCROLL_SMOOTH)
+ return false;
+#endif
+
static sal_uLong nLines = 0;
if( ! nLines )
{
More information about the Libreoffice-commits
mailing list