aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-05 01:06:31 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:50:03 +0800
commitabe994285adfe8d2019ed9407f29393ba9a52263 (patch)
tree5046567bf86b60ce9bca8a7302d9bdb993515741 /widgets/misc
parentf71506a5e01d921404c2c50fad4b26dea57b5341 (diff)
downloadgsoc2013-evolution-abe994285adfe8d2019ed9407f29393ba9a52263.tar.gz
gsoc2013-evolution-abe994285adfe8d2019ed9407f29393ba9a52263.tar.zst
gsoc2013-evolution-abe994285adfe8d2019ed9407f29393ba9a52263.zip
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.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index f39bdf7c8b..0611ff20bc 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -974,7 +974,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);