[PATCH] Add smooth-scroll to GtkTextView event mask



Without any extra supporting code, just adding GTK_SMOOTH_SCROLL_MASK to
the event mask for GtkTextView makes GEdit do the right thing and scroll
smoothly.  Lovely.

Signed-off-by: Daniel Stone <daniel fooishbar org>
---
 gtk/gtktextview.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index a69040d..33f2b5c 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8449,6 +8449,7 @@ text_window_realize (GtkTextWindow *win,
   attributes.height = win->allocation.height;
   attributes.event_mask = (GDK_EXPOSURE_MASK            |
                            GDK_SCROLL_MASK              |
+                           GDK_SMOOTH_SCROLL_MASK       |
                            GDK_KEY_PRESS_MASK           |
                            GDK_BUTTON_PRESS_MASK        |
                            GDK_BUTTON_RELEASE_MASK      |
-- 
1.7.9.1



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