From: Marco Pesenti Gritti Date: Sun, 30 Jan 2005 16:51:49 +0000 (+0000) Subject: Do not redraw unnecessarily X-Git-Tag: EVINCE_0_1_3~19 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=c5067c847ed89efbc92f071c358f9c3c8a47cd33;p=evince.git Do not redraw unnecessarily 2005-01-30 Marco Pesenti Gritti * shell/ev-view.c: (ev_view_motion_notify_event): Do not redraw unnecessarily --- diff --git a/ChangeLog b/ChangeLog index ec08c50c..62b8d1c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-30 Marco Pesenti Gritti + + * shell/ev-view.c: (ev_view_motion_notify_event): + + Do not redraw unnecessarily + 2005-01-30 Marco Pesenti Gritti * pdf/xpdf/pdf-document.cc: diff --git a/shell/ev-view.c b/shell/ev-view.c index a38726cf..280b4cf6 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -628,6 +628,8 @@ ev_view_motion_notify_event (GtkWidget *widget, view->selection.y = MIN (view->selection_start.y, event->y); view->selection.width = ABS (view->selection_start.x - event->x) + 1; view->selection.height = ABS (view->selection_start.y - event->y) + 1; + + gtk_widget_queue_draw (widget); } else if (view->document) { EvLink *link; @@ -649,8 +651,6 @@ ev_view_motion_notify_event (GtkWidget *widget, } } - gtk_widget_queue_draw (widget); - return TRUE; }