[gnome-text-editor] page: use scroll_mark_onscreen()



commit 9f5701b1635198f4479ae7933cf3f8e391eff91b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 30 13:40:10 2021 -0700

    page: use scroll_mark_onscreen()
    
    This is fine for now, I guess.

 src/editor-page.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/editor-page.c b/src/editor-page.c
index 8d87ca4..b697193 100644
--- a/src/editor-page.c
+++ b/src/editor-page.c
@@ -993,12 +993,7 @@ _editor_page_scroll_to_insert (EditorPage *self)
   g_return_if_fail (EDITOR_IS_PAGE (self));
 
   mark = gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (self->document));
-  gtk_text_view_scroll_to_mark (GTK_TEXT_VIEW (self->view),
-                                mark,
-                                0.25,
-                                TRUE,
-                                0.75,
-                                0.5);
+  gtk_text_view_scroll_mark_onscreen (GTK_TEXT_VIEW (self->view), mark);
 }
 
 void


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