diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-18 17:47:33 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-18 17:47:33 +0800 |
commit | 534410e7cdccc371ecb52160a301a83de70379ce (patch) | |
tree | 115946860f668cea304fa59a976dfc86e8e34205 /widgets/misc/e-map.c | |
parent | 0ff898adb4dd311f7b1c34ece1b4717ea3d513eb (diff) | |
download | gsoc2013-evolution-534410e7cdccc371ecb52160a301a83de70379ce.tar.gz gsoc2013-evolution-534410e7cdccc371ecb52160a301a83de70379ce.tar.zst gsoc2013-evolution-534410e7cdccc371ecb52160a301a83de70379ce.zip |
Construct map file name at run-time.
2005-12-18 Tor Lillqvist <tml@novell.com>
* e-map.c: Construct map file name at run-time.
svn path=/trunk/; revision=30865
Diffstat (limited to 'widgets/misc/e-map.c')
-rw-r--r-- | widgets/misc/e-map.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c index f2a28f0dda..0d73ed3493 100644 --- a/widgets/misc/e-map.c +++ b/widgets/misc/e-map.c @@ -29,6 +29,8 @@ #include <libart_lgpl/art_filterlevel.h> #include <libgnome/gnome-i18n.h> +#include "e-util/e-util-private.h" + #include "e-map.h" /* Scroll step increment */ @@ -203,11 +205,13 @@ static void e_map_init (EMap *view) { EMapPrivate *priv; + char *map_file_name = g_build_filename (EVOLUTION_IMAGES, "world_map-960.png", NULL); priv = g_new0 (EMapPrivate, 1); view->priv = priv; - load_map_background (view, MAP_DIR"/world_map-960.png"); + load_map_background (view, map_file_name); + g_free (map_file_name); priv->frozen = FALSE; priv->smooth_zoom = TRUE; priv->zoom_state = E_MAP_ZOOMED_OUT; |