summaryrefslogtreecommitdiff
path: root/src/tests/efreet/ef_menu.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-08 23:14:17 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-08 23:14:17 +0000
commit50b9b3156626fc1b90ad2f28780b9a9886634111 (patch)
tree0630a05fae3a0e74b128c7f4a9c7d5753ec5a8ab /src/tests/efreet/ef_menu.c
parentceaab9d37fab8c94383641622018227f6af61a26 (diff)
efl/efreet: use proper PACKAGE_DATA_DIR, add DATA_DIR.
efreet used an uncommon PACKAGE_DATA_DIR without the package name because it used that to populate default variables. Add another variable for that and make PACKAGE_DATA_DIR more common. Tests still fails like crazy, and they assume installed data :-( SVN revision: 82426
Diffstat (limited to 'src/tests/efreet/ef_menu.c')
-rw-r--r--src/tests/efreet/ef_menu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/efreet/ef_menu.c b/src/tests/efreet/ef_menu.c
index be42f128a3..4adbd941c0 100644
--- a/src/tests/efreet/ef_menu.c
+++ b/src/tests/efreet/ef_menu.c
@@ -32,7 +32,7 @@ ef_cb_menu_get(void)
32 Efreet_Menu *menu; 32 Efreet_Menu *menu;
33 33
34 menu = efreet_menu_get(); 34 menu = efreet_menu_get();
35// menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu"); 35// menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu");
36 if (!menu) 36 if (!menu)
37 { 37 {
38 printf("efreet_menu_get() returned NULL\n"); 38 printf("efreet_menu_get() returned NULL\n");
@@ -50,7 +50,7 @@ ef_cb_menu_with_slashes(void)
50{ 50{
51 Efreet_Menu *menu; 51 Efreet_Menu *menu;
52 52
53 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test_menu_slash_bad.menu"); 53 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test_menu_slash_bad.menu");
54 if (menu) 54 if (menu)
55 { 55 {
56 printf("efreet_menu_get() didn't return NULL\n"); 56 printf("efreet_menu_get() didn't return NULL\n");
@@ -67,7 +67,7 @@ ef_cb_menu_save(void)
67 int ret; 67 int ret;
68 68
69// menu = efreet_menu_get(); 69// menu = efreet_menu_get();
70 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu"); 70 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu");
71 if (!menu) 71 if (!menu)
72 { 72 {
73 printf("efreet_menu_get() returned NULL\n"); 73 printf("efreet_menu_get() returned NULL\n");
@@ -86,7 +86,7 @@ ef_cb_menu_edit(void)
86 Efreet_Desktop *desktop; 86 Efreet_Desktop *desktop;
87 87
88// menu = efreet_menu_get(); 88// menu = efreet_menu_get();
89 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu"); 89 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu");
90 if (!menu) 90 if (!menu)
91 { 91 {
92 printf("efreet_menu_get() returned NULL\n"); 92 printf("efreet_menu_get() returned NULL\n");
@@ -98,7 +98,7 @@ ef_cb_menu_edit(void)
98 printf("\n"); 98 printf("\n");
99#endif 99#endif
100 100
101 desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop"); 101 desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/test/test.desktop");
102 if (!desktop) 102 if (!desktop)
103 { 103 {
104 efreet_menu_free(menu); 104 efreet_menu_free(menu);