[evolution/rendering-cleanup: 78/97] e-map: Stuff tween duration into a macro so it's easier to change
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/rendering-cleanup: 78/97] e-map: Stuff tween duration into a macro so it's easier to change
- Date: Thu, 21 Oct 2010 09:50:35 +0000 (UTC)
commit e46dbb59c5ce6db5660ae873711f6d4a7c800ad3
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 19 11:16:34 2010 +0200
e-map: Stuff tween duration into a macro so it's easier to change
widgets/misc/e-map.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index 11ca6de..ea5c0aa 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -37,6 +37,7 @@
#include "e-util/gtk-compat.h"
#define E_MAP_TWEEN_TIMEOUT_MSECS 25
+#define E_MAP_TWEEN_DURATION_MSECS 150
/* Scroll step increment */
@@ -857,7 +858,7 @@ e_map_zoom_to_location (EMap *map, gdouble longitude, gdouble latitude)
e_map_set_zoom (map, E_MAP_ZOOMED_IN);
center_at (map, longitude, latitude);
- e_map_tween_new_from (map, 150, prevlong, prevlat, prevzoom);
+ e_map_tween_new_from (map, E_MAP_TWEEN_DURATION_MSECS, prevlong, prevlat, prevzoom);
}
void
@@ -874,7 +875,7 @@ e_map_zoom_out (EMap *map)
e_map_set_zoom (map, E_MAP_ZOOMED_OUT);
center_at (map, longitude, latitude);
- e_map_tween_new_from (map, 150, longitude, latitude, prevzoom);
+ e_map_tween_new_from (map, E_MAP_TWEEN_DURATION_MSECS, longitude, latitude, prevzoom);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]