[evolution] e-map: Repaint points unconditionally
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e-map: Repaint points unconditionally
- Date: Fri, 29 Oct 2010 18:39:13 +0000 (UTC)
commit abe994285adfe8d2019ed9407f29393ba9a52263
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.
widgets/misc/e-map.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index f39bdf7..0611ff2 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]