[gedit/wip/text-cut-off-3: 3/3] install idle scroll - TEXT *CUT OFF*




commit 32f85d8af62218e2075d8bfdf03bdf3cc33e464c
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date:   Thu Jul 21 22:36:02 2022 +0200

    install idle scroll - TEXT *CUT OFF*

 gedit/gedit-tab.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 6de433120..7adb0e0da 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1634,6 +1634,12 @@ goto_line (GTask *loading_task)
        gtk_text_buffer_get_start_iter (GTK_TEXT_BUFFER (doc), &iter);
        gtk_text_buffer_place_cursor (GTK_TEXT_BUFFER (doc), &iter);
 
+       if (data->tab->idle_scroll == 0)
+       {
+               g_print ("install idle scroll\n");
+               data->tab->idle_scroll = g_idle_add ((GSourceFunc)scroll_to_cursor, data->tab);
+       }
+
 #if 0
        LoaderData *data = g_task_get_task_data (loading_task);
        GeditDocument *doc = gedit_tab_get_document (data->tab);


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