[eog/wip/baedert/gtkimageview: 66/75] scroll-view: Clean up display event mask



commit d6509391049fa23c0de3164cf2f78e64c82a480e
Author: Timm Bäder <mail baedert org>
Date:   Sat Mar 19 11:06:47 2016 +0100

    scroll-view: Clean up display event mask

 src/eog-scroll-view.c |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 940bb73..e801b58 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -1491,16 +1491,12 @@ eog_scroll_view_init (EogScrollView *view)
        g_signal_connect (priv->display, "notify::scale",
                          G_CALLBACK (display_scale_changed_cb), view);
 
-       gtk_widget_add_events (GTK_WIDGET (priv->display),
-                              GDK_EXPOSURE_MASK
-                              | GDK_TOUCHPAD_GESTURE_MASK
-                              | GDK_BUTTON_PRESS_MASK
-                              | GDK_BUTTON_RELEASE_MASK
-                              | GDK_POINTER_MOTION_MASK
-                              | GDK_POINTER_MOTION_HINT_MASK
-                              | GDK_TOUCH_MASK
-                              | GDK_SCROLL_MASK
-                              | GDK_KEY_PRESS_MASK);
+       gtk_widget_add_events (priv->display,
+                              GDK_BUTTON_PRESS_MASK
+                            | GDK_BUTTON_RELEASE_MASK
+                            | GDK_POINTER_MOTION_MASK
+                            | GDK_POINTER_MOTION_HINT_MASK
+                            | GDK_KEY_PRESS_MASK);
        g_signal_connect (G_OBJECT (priv->display), "configure_event",
                          G_CALLBACK (display_size_change), view);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]