diff options
author | michelle legrand <michelle.legrand@openwide.fr> | 2015-02-11 14:47:00 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-03-26 18:11:30 +0100 |
commit | fad2f79bacf79e37bafbf0252a1560b199a8b5ee (patch) | |
tree | 92d80f775e6153317ee71b7b9dd74de7dbc80792 /src/modules | |
parent | c8ca1ad1b3390c9bf6712b616f971d814c63c274 (diff) |
elm_prefs: looking for right lib directory in prefix.
Summary:
Using elm_app_data_dir_get() to get the right application's prefix.
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/prefs/elm_swallow.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/prefs/elm_swallow.c b/src/modules/prefs/elm_swallow.c index 0fd738cf8..e5ea11d62 100644 --- a/src/modules/prefs/elm_swallow.c +++ b/src/modules/prefs/elm_swallow.c | |||
@@ -1,10 +1,5 @@ | |||
1 | #include "private.h" | 1 | #include "private.h" |
2 | 2 | ||
3 | static const char LAYOUT_EDJ[] = PACKAGE_LIB_DIR\ | ||
4 | "/elementary/modules/prefs/"\ | ||
5 | MODULE_ARCH\ | ||
6 | "/elm_prefs_swallow.edj"; | ||
7 | |||
8 | static Elm_Prefs_Item_Type supported_types[] = | 3 | static Elm_Prefs_Item_Type supported_types[] = |
9 | { | 4 | { |
10 | ELM_PREFS_TYPE_SWALLOW, | 5 | ELM_PREFS_TYPE_SWALLOW, |
@@ -19,8 +14,11 @@ elm_prefs_swallow_add(const Elm_Prefs_Item_Iface *iface EINA_UNUSED, | |||
19 | Elm_Prefs_Item_Changed_Cb cb EINA_UNUSED) | 14 | Elm_Prefs_Item_Changed_Cb cb EINA_UNUSED) |
20 | { | 15 | { |
21 | Evas_Object *obj = elm_layout_add(prefs); | 16 | Evas_Object *obj = elm_layout_add(prefs); |
17 | char layout_edj[PATH_MAX]; | ||
18 | |||
19 | snprintf(layout_edj, sizeof(layout_edj), "%s/elementary/modules/prefs/%s/elm_prefs_swallow.edj", elm_app_lib_dir_get(), MODULE_ARCH); | ||
22 | 20 | ||
23 | elm_layout_file_set(obj, LAYOUT_EDJ, "elm_prefs_swallow"); | 21 | elm_layout_file_set(obj, layout_edj, "elm_prefs_swallow"); |
24 | 22 | ||
25 | return obj; | 23 | return obj; |
26 | } | 24 | } |