[gedit/wip/text-cut-off-3] low priority scroll - TEXT *CUT OFF*
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/text-cut-off-3] low priority scroll - TEXT *CUT OFF*
- Date: Thu, 21 Jul 2022 21:30:26 +0000 (UTC)
commit 542e3de8ca2128f2402ed6fd65524eee61bbe4c0
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date: Thu Jul 21 23:28:29 2022 +0200
low priority scroll - TEXT *CUT OFF*
gedit/gedit-tab.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 1b4386ac4..15f792c3a 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1640,15 +1640,14 @@ 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);
- do_scroll_to_cursor (data->tab);
-
-#if 0
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);
+ g_print ("install low priority scroll\n");
+ data->tab->idle_scroll = g_idle_add_full (G_PRIORITY_LOW,
+ (GSourceFunc)scroll_to_cursor,
+ data->tab,
+ NULL);
}
-#endif
#if 0
LoaderData *data = g_task_get_task_data (loading_task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]