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>

https://bugzilla.gnome.org/show_bug.cgi?id=671488
This commit is contained in:
Daniel Stone 2012-03-06 15:52:38 +00:00 committed by Paolo Borelli
parent 4b05f4178a
commit 134ef22a4e

View File

@ -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 |