[gnome-system-tools/rendering-cleanup: 21/21] 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: [gnome-system-tools/rendering-cleanup: 21/21] e-map: Stuff tween duration into a macro so it's easier to change
- Date: Tue, 5 Oct 2010 16:40:58 +0000 (UTC)
commit 41fde10a9cc32d9e332e1deb5861b7d2fa123b59
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 5 18:35:57 2010 +0200
e-map: Stuff tween duration into a macro so it's easier to change
src/time/e-map/e-map.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index 014a6e7..5ac7dcf 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -33,6 +33,7 @@
#include "e-map-marshal.h"
#define E_MAP_TWEEN_TIMEOUT_MSECS 25
+#define E_MAP_TWEEN_DURATION_MSECS 150
/* Scroll step increment */
@@ -873,7 +874,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
@@ -890,7 +891,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]