]> www.fi.muni.cz Git - evince.git/commitdiff
Do not redraw unnecessarily
authorMarco Pesenti Gritti <marco@gnome.org>
Sun, 30 Jan 2005 16:51:49 +0000 (16:51 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Sun, 30 Jan 2005 16:51:49 +0000 (16:51 +0000)
2005-01-30  Marco Pesenti Gritti  <marco@gnome.org>

        * shell/ev-view.c: (ev_view_motion_notify_event):

        Do not redraw unnecessarily

ChangeLog
shell/ev-view.c

index ec08c50c16a08686d9947d353e0bfbf580d7c80e..62b8d1c9e3a39c3acdca54eb760ac59ddbec75da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-30  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * shell/ev-view.c: (ev_view_motion_notify_event):
+
+       Do not redraw unnecessarily
+
 2005-01-30  Marco Pesenti Gritti  <marco@gnome.org>
 
        * pdf/xpdf/pdf-document.cc:
index a38726cf50888181d7d582cb181c8c68fa8cfe2f..280b4cf6b55a1c0836cc92a6f3b80d0737ca2b69 100644 (file)
@@ -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;
 }