summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext')
-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));