[gtk+] Add smooth-scroll to GtkTextView event mask
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add smooth-scroll to GtkTextView event mask
- Date: Tue, 6 Mar 2012 20:49:03 +0000 (UTC)
commit 134ef22a4e2028e689c0861b6cd1d02ada331b87
Author: Daniel Stone <daniel fooishbar org>
Date: Tue Mar 6 15:52:38 2012 +0000
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
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 |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]