[gtksourceview] Scroll to cursor when moving words



commit d930f1664e1f8576298b8599a129e5dcf62e4f3d
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun May 16 19:52:54 2010 +0200

    Scroll to cursor when moving words

 gtksourceview/gtksourceview.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index a512c15..4942332 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4176,6 +4176,9 @@ gtk_source_view_move_words (GtkSourceView *view, gint step)
 
 	gtk_text_buffer_end_user_action (buf);
 
+	gtk_text_view_scroll_mark_onscreen (GTK_TEXT_VIEW (view),
+	                                    gtk_text_buffer_get_insert (buf));
+
 	g_free (old_text);
 	g_free (new_text);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]