summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-10-01 23:53:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-10-01 23:53:11 (GMT)
commit83d626cb125a83f3a8b47f6b42920996aa85bd8a (patch)
treef8a4a1a929e9b3606f4b9a7898e375a0664847b5 /src
parent3c6968d4d5a8918c456cdea28a7c6195368d996e (diff)
Only redrawn the needed area on view exposure.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@122 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src')
-rw-r--r--src/gtkext/gtkblockview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gtkext/gtkblockview.c b/src/gtkext/gtkblockview.c
index 5cf4e53..0a23317 100644
--- a/src/gtkext/gtkblockview.c
+++ b/src/gtkext/gtkblockview.c
@@ -799,7 +799,8 @@ static gboolean gtk_block_view_expose(GtkWidget *widget, GdkEventExpose *event)
gtk_text_layout_draw(GTK_BLOCK_VIEW(bview)->layout, widget, GDK_DRAWABLE(widget->window),
- NULL, view->left_text, 0, 0, 0, 5000, 50000, &child_exposes);
+ NULL, view->left_text, 0, event->area.x, event->area.y,
+ event->area.width, event->area.height, &child_exposes);
gdk_window_end_paint(GDK_DRAWABLE(widget->window));