[gnome-system-tools/rendering-cleanup: 12/21] xxx: don't repaint points when not realized
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools/rendering-cleanup: 12/21] xxx: don't repaint points when not realized
- Date: Tue, 5 Oct 2010 16:40:12 +0000 (UTC)
commit 5c39aefe6f1b7dff24562b9784497c23d46bee1a
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 5 14:04:21 2010 +0200
xxx: don't repaint points when not realized
src/time/e-map/e-map.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index 214a533..e007b38 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -1029,6 +1029,9 @@ repaint_point (EMap *map, EMapPoint *point)
{
gdouble px, py;
+ if (!gtk_widget_is_drawable (GTK_WIDGET (map)))
+ return;
+
e_map_world_to_window (map, point->longitude, point->latitude, &px, &py);
gtk_widget_queue_draw_area (GTK_WIDGET (map),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]