diff options
author | Havoc Pennington <hp@redhat.com> | 2001-10-23 16:07:05 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-10-23 16:07:05 +0000 |
commit | 13a24b1b369c8bfad8f8827d0cb39fed9394d850 (patch) | |
tree | 28aecdf98fcd81f8d26ff9b28003930c8dc58132 /gtk/gtktextview.h | |
parent | 4e32ede28751a90f747ccd0a7144bd10aa613a36 (diff) | |
download | gtk+-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.h | 3 |
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 |