[gedit/wip/text-cut-off-3] debug
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/text-cut-off-3] debug
- Date: Thu, 21 Jul 2022 20:02:41 +0000 (UTC)
commit 55c4dc5ced9395f86912fa5a0f68b1ede1dce207
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date: Thu Jul 21 22:02:17 2022 +0200
debug
gedit/gedit-tab.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index bf70ce0c3..6c900786c 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1033,6 +1033,7 @@ scroll_to_cursor (GeditTab *tab)
{
GeditView *view;
+ g_print ("scroll to cursor\n");
view = gedit_tab_get_view (tab);
tepl_view_scroll_to_cursor (TEPL_VIEW (view));
@@ -1637,6 +1638,7 @@ goto_line (GTask *loading_task)
/* At the requested line/column if set. */
if (data->line_pos > 0)
{
+ g_print ("requested pos\n");
gtk_text_buffer_get_iter_at_line_offset (GTK_TEXT_BUFFER (doc),
&iter,
data->line_pos - 1,
@@ -1651,6 +1653,7 @@ goto_line (GTask *loading_task)
gchar *position_str;
guint64 offset = 0;
+ g_print ("from metadata\n");
position_str = gedit_document_get_metadata (doc, GEDIT_METADATA_ATTRIBUTE_POSITION);
if (position_str != NULL &&
@@ -1661,6 +1664,7 @@ goto_line (GTask *loading_task)
&offset,
NULL))
{
+ g_print ("from metadata (successful)\n");
gtk_text_buffer_get_iter_at_offset (GTK_TEXT_BUFFER (doc),
&iter,
(gint) offset);
@@ -1687,6 +1691,7 @@ goto_line (GTask *loading_task)
*/
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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]