summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/gtkext/gtkblockview.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 11943d5..75f9b58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+09-10-02 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/gtkext/gtkblockview.c:
+ Only redraw the needed area on view exposure.
+
09-09-30 Cyrille Bagard <nocbos@gmail.com>
* plugins/stackvars/operand.c:
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));