summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkblockview.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gtkext/gtkblockview.c b/src/gtkext/gtkblockview.c
index a79b3ff..ae4b1a8 100644
--- a/src/gtkext/gtkblockview.c
+++ b/src/gtkext/gtkblockview.c
@@ -340,10 +340,7 @@ static void g_delayed_insertion_process(GDelayedInsertion *insertion, GtkExtStat
gdk_threads_enter();
if (iter != lines)
- {
- gtk_text_buffer_get_end_iter(view->buffer, &pos);
gtk_text_buffer_insert_with_tags(view->buffer, &pos, "\n", 1, NULL);
- }
gtk_text_buffer_get_end_iter(view->buffer, &pos);
@@ -498,7 +495,6 @@ static void gtk_block_view_init(GtkBlockView *view)
view->layout = gtk_text_layout_new();
- gtk_text_layout_set_buffer(view->layout, view->buffer);
@@ -506,8 +502,6 @@ static void gtk_block_view_init(GtkBlockView *view)
{
done = true;
- gtk_text_layout_set_cursor_visible(GTK_BLOCK_VIEW(view)->layout, FALSE);
-
gtk_text_layout_set_overwrite_mode(GTK_BLOCK_VIEW(view)->layout, FALSE);
@@ -1085,6 +1079,8 @@ static void gtk_block_view_complete_building_content(GDelayedInsertion *insertio
gdk_threads_enter();
+ gtk_text_layout_set_buffer(view->layout, view->buffer);
+
gtk_text_buffer_get_end_iter(view->buffer, &pos);
gtk_text_layout_move_iter_visually(view->layout, &pos, -1);
gtk_text_layout_get_iter_location(view->layout, &pos, &rect);