summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-10-23 16:07:05 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-10-23 16:07:05 +0000
commit13a24b1b369c8bfad8f8827d0cb39fed9394d850 (patch)
tree28aecdf98fcd81f8d26ff9b28003930c8dc58132 /gtk/gtktextview.h
parent4e32ede28751a90f747ccd0a7144bd10aa613a36 (diff)
downloadgtk+-13a24b1b369c8bfad8f8827d0cb39fed9394d850.tar.gz
scroll to cursor on grab focus, unless it's caused by button click, #59708
2001-10-23 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor on grab focus, unless it's caused by button click, #59708
Diffstat (limited to 'gtk/gtktextview.h')
-rw-r--r--gtk/gtktextview.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h
index 430c53a9e4..e296c4621d 100644
--- a/gtk/gtktextview.h
+++ b/gtk/gtktextview.h
@@ -92,6 +92,9 @@ struct _GtkTextView
guint need_im_reset : 1; /* If we have reset the IM since the last character entered */
/* just selected a word or line via double/triple click */
guint just_selected_element : 1;
+
+ /* disable scrolling to cursor on focus */
+ guint disable_scroll_on_focus : 1;
/* debug flag - means that we've validated onscreen since the
* last "invalidate" signal from the layout