From 909fd6e2c4369020707782e20656069fbb3030d1 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 20 May 2014 23:34:25 +1000 Subject: Found a way to deal with the PACKAGE_* stuff outside of Elm. It's undocumented. --- src/extantz/woMan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/extantz/woMan.c') diff --git a/src/extantz/woMan.c b/src/extantz/woMan.c index ef10631..09e7e2d 100644 --- a/src/extantz/woMan.c +++ b/src/extantz/woMan.c @@ -35,8 +35,8 @@ static Elm_Genlist_Item_Class *grid_gic = NULL; static Elm_Genlist_Item_Class *account_gic = NULL; static Elm_Genlist_Item_Class *viewer_gic = NULL; -//static const char *img1 = PACKAGE_DATA_DIR "plant_01.jpg"; -//static const char *img2 = PACKAGE_DATA_DIR "sky_01.jpg"; +//static const char *img1 = "plant_01.jpg"; +//static const char *img2 = "sky_01.jpg"; static const char *img3 = "rock_01.jpg"; @@ -264,7 +264,7 @@ winFang *woMan_add(globals *ourGlobals) evas_object_size_hint_align_set(nf, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_show(nf); - sprintf(buf, "%s/%s", elm_app_data_dir_get(), img3); + sprintf(buf, "%s/%s", prefix_data_get(), img3); tab = viewerList; tab_it = elm_naviframe_item_push(nf, NULL, NULL, NULL, tab, NULL); elm_naviframe_item_title_enabled_set(tab_it, EINA_FALSE, EINA_TRUE); elm_toolbar_item_append(tb, NULL, "Viewers", _promote, tab_it); // TODO - This strdup leaks, but this is just temporary test code anyway, it will go away. tab = _content_image_new(me->win, strdup(buf)); tab_it = elm_naviframe_item_push(nf, NULL, NULL, NULL, tab, NULL); elm_naviframe_item_title_enabled_set(tab_it, EINA_FALSE, EINA_TRUE); elm_toolbar_item_append(tb, NULL, "Landmarks", _promote, tab_it); -- cgit v1.1