summaryrefslogtreecommitdiff
path: root/legacy/ecore
diff options
context:
space:
mode:
authorhandyande <handyande>2004-05-13 09:53:58 +0000
committerhandyande <handyande@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2004-05-13 09:53:58 +0000
commite474c66baff85c88a7a4152513dbd482abe8115f (patch)
treeef374e352a909cc1409b33f43e16339b81f4b887 /legacy/ecore
parent34f117babde60a25069fb2dc9c554ac3f00b0a01 (diff)
instead of assuming /usr/local use the specified --prefix
SVN revision: 10200
Diffstat (limited to 'legacy/ecore')
-rw-r--r--legacy/ecore/src/lib/ecore_config/convenience.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/ecore/src/lib/ecore_config/convenience.c b/legacy/ecore/src/lib/ecore_config/convenience.c
index 69c0619af8..23d4352959 100644
--- a/legacy/ecore/src/lib/ecore_config/convenience.c
+++ b/legacy/ecore/src/lib/ecore_config/convenience.c
@@ -1,6 +1,8 @@
1#include "Ecore_Config.h" 1#include "Ecore_Config.h"
2#include "Ecore.h" 2#include "Ecore.h"
3 3
4#include "config.h"
5
4#include <string.h> 6#include <string.h>
5#include <stdio.h> 7#include <stdio.h>
6#include <stdlib.h> 8#include <stdlib.h>
@@ -299,7 +301,7 @@ ecore_config_theme_default_path_get(void)
299 int len; 301 int len;
300 302
301 home = getenv("HOME"); 303 home = getenv("HOME");
302 len = strlen("/usr/local/share/") + strlen(__ecore_config_app_name) + 304 len = strlen(PACKAGE_DATA_DIR "/../") + strlen(__ecore_config_app_name) +
303 strlen("/themes/") + 1; 305 strlen("/themes/") + 1;
304 if (home) 306 if (home)
305 len += strlen(home) + strlen("/.e/apps/") + 307 len += strlen(home) + strlen("/.e/apps/") +
@@ -317,7 +319,7 @@ ecore_config_theme_default_path_get(void)
317 strcat(path, __ecore_config_app_name); 319 strcat(path, __ecore_config_app_name);
318 strcat(path, "/themes/|"); 320 strcat(path, "/themes/|");
319 } 321 }
320 strcat(path, "/usr/local/share/"); 322 strcat(path, PACKAGE_DATA_DIR "/../");
321 strcat(path, __ecore_config_app_name); 323 strcat(path, __ecore_config_app_name);
322 strcat(path, "/themes/"); 324 strcat(path, "/themes/");
323 325