From 83d626cb125a83f3a8b47f6b42920996aa85bd8a Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Thu, 1 Oct 2009 23:53:11 +0000 Subject: Only redrawn the needed area on view exposure. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@122 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ src/gtkext/gtkblockview.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 11943d5..75f9b58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +09-10-02 Cyrille Bagard + + * src/gtkext/gtkblockview.c: + Only redraw the needed area on view exposure. + 09-09-30 Cyrille Bagard * 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)); -- cgit v0.11.2-87-g4458