summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-06 15:44:44 -0500
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-06 15:44:44 -0500
commit7d4c21c9cb72fa73605410780059d1dbd4e217ca (patch)
treee1d34bfc429f930aa7af4eecbd6c495ca5015363
parent791b4b7760f9ec59a02cf0bbfb6e8fe5aad71937 (diff)
downloadeclipse.platform.swt-7d4c21c9cb72fa73605410780059d1dbd4e217ca.tar.gz
eclipse.platform.swt-7d4c21c9cb72fa73605410780059d1dbd4e217ca.tar.xz
eclipse.platform.swt-7d4c21c9cb72fa73605410780059d1dbd4e217ca.zip
GDK_SMOOTH_SCROLL_MASK is only available on GTK 3.4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
index ba29ff6bbb..f3e78ab482 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
@@ -475,7 +475,7 @@ static void swt_fixed_realize (GtkWidget *widget) {
attributes.height = allocation.height;
attributes.wclass = GDK_INPUT_OUTPUT;
attributes.visual = gtk_widget_get_visual (widget);
- attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK | GDK_SMOOTH_SCROLL_MASK | gtk_widget_get_events (widget);
+ attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK | 1 << 23 /*GDK_SMOOTH_SCROLL_MASK*/ | gtk_widget_get_events (widget);
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask);
gtk_widget_set_window (widget, window);