From c5067c847ed89efbc92f071c358f9c3c8a47cd33 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 30 Jan 2005 16:51:49 +0000 Subject: Do not redraw unnecessarily 2005-01-30 Marco Pesenti Gritti * shell/ev-view.c: (ev_view_motion_notify_event): Do not redraw unnecessarily --- (limited to 'shell') diff --git a/shell/ev-view.c b/shell/ev-view.c index a38726c..280b4cf 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; } -- cgit v0.9.1