forked from AuroraMiddleware/gtk
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:
parent
4b05f4178a
commit
134ef22a4e
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user