summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-10-29 01:38:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-10-29 01:38:43 (GMT)
commit3b1b7cd7a3b7b36d2937e13437519e951668a995 (patch)
treefda56d25b729287f603d32dc51493ea3bb0bffea /src/gtkext
parent8ae0409cfc70aa399bc0083a1ce6bdb27cc2ce23 (diff)
Fixed bugs and made the binary loading process faster.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@134 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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);