[gnome-system-tools/rendering-cleanup: 10/20] e-map: Repaint points unconditionally



commit 9d7bc076b6523f90ab2079216c9e186e9a4fe777
Author: Benjamin Otte <otte redhat com>
Date:   Mon Oct 4 19:06:31 2010 +0200

    e-map: Repaint points unconditionally
    
    The in_view() check is broken because it doesn't repaint points that are
    1px outside the window. The point take 2 extra pixels in every direction
    after all. And gtk_widget_queue_draw_area() will automatically discard
    out-of-range rects anyway.

 src/time/e-map/e-map.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index d88c970..b90efd3 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -1043,7 +1043,8 @@ repaint_point (EMap *map, EMapPoint *point)
 {
 	gdouble px, py;
 
-	if (!e_map_point_is_in_view (map, point)) return;
+        if (!gtk_widget_is_drawable (GTK_WIDGET (map)))
+          return;
 
 	e_map_world_to_window (map, point->longitude, point->latitude, &px, &py);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]