diff options
author | Benjamin Otte <otte@redhat.com> | 2010-10-19 17:16:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 01:50:03 +0800 |
commit | d6a0c006c143a888936bdd0ca2159414219f7bb0 (patch) | |
tree | ddca59b8c09bd9d0d6d2bb6fcf6be8f387c74f8f /widgets | |
parent | 5d73cd320faf322c8e5f3a4753bf85b1ebc64c2c (diff) | |
download | gsoc2013-evolution-d6a0c006c143a888936bdd0ca2159414219f7bb0.tar.gz gsoc2013-evolution-d6a0c006c143a888936bdd0ca2159414219f7bb0.tar.zst gsoc2013-evolution-d6a0c006c143a888936bdd0ca2159414219f7bb0.zip |
e-map: Stuff tween duration into a macro so it's easier to change
Diffstat (limited to 'widgets')
-rw-r--r-- | 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 11ca6de380..ea5c0aabcf 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 |