summaryrefslogtreecommitdiff
path: root/src/examples/gengrid_example.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-30 06:34:07 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-30 06:34:07 +0000
commitd7e757d2ba5f6c318b98a4c0c552e636f7ab6a6b (patch)
tree9e61f577d9cb8ef4d99175d54a86a2bd2d21f783 /src/examples/gengrid_example.c
parentf07f556467dd45e7978da7e36a230ec3d78b69a2 (diff)
elm examples: Removed macro for data dir. Used elm_app_info_set and elm_app_data_dir_get instead.
SVN revision: 69783
Diffstat (limited to 'src/examples/gengrid_example.c')
-rw-r--r--src/examples/gengrid_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index e83357f50..e3b345d60 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -10,7 +10,6 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#define DATA_DIR "../../data"
14 13
15typedef struct _Example_Item 14typedef struct _Example_Item
16{ 15{
@@ -325,7 +324,7 @@ _grid_content_get(void *data,
325 Evas_Object *icon = elm_bg_add(obj); 324 Evas_Object *icon = elm_bg_add(obj);
326 char buf[PATH_MAX]; 325 char buf[PATH_MAX];
327 326
328 snprintf(buf, sizeof(buf), "%s/images/%s", DATA_DIR, 327 snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(),
329 it->path); 328 it->path);
330 329
331 elm_bg_file_set(icon, buf, NULL); 330 elm_bg_file_set(icon, buf, NULL);
@@ -431,6 +430,7 @@ elm_main(int argc,
431 430
432 srand(time(NULL)); 431 srand(time(NULL));
433 432
433 elm_app_info_set(elm_main, "elementary", "images");
434 win = elm_win_add(NULL, "gengrid", ELM_WIN_BASIC); 434 win = elm_win_add(NULL, "gengrid", ELM_WIN_BASIC);
435 elm_win_title_set(win, "Generic Grid Example"); 435 elm_win_title_set(win, "Generic Grid Example");
436 evas_object_smart_callback_add(win, "delete,request", _on_done, NULL); 436 evas_object_smart_callback_add(win, "delete,request", _on_done, NULL);