summaryrefslogtreecommitdiff
path: root/src/examples/popup_example_02.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/popup_example_02.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/popup_example_02.c')
-rw-r--r--src/examples/popup_example_02.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/popup_example_02.c b/src/examples/popup_example_02.c
index 0f839d3e2..b66e05fbe 100644
--- a/src/examples/popup_example_02.c
+++ b/src/examples/popup_example_02.c
@@ -2,7 +2,6 @@
2//gcc -o popup_example_02 popup_example_02.c -g `pkg-config --cflags --libs elementary` 2//gcc -o popup_example_02 popup_example_02.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#define DATA_DIR "../../data"
6 5
7static void _response_cb(void *data, Evas_Object *obj, void *event_info); 6static void _response_cb(void *data, Evas_Object *obj, void *event_info);
8 7
@@ -12,6 +11,7 @@ elm_main(int argc, char **argv)
12 Evas_Object *win, *bg, *popup, *btn1, *btn2, *btn3, *icon1; 11 Evas_Object *win, *bg, *popup, *btn1, *btn2, *btn3, *icon1;
13 char buf[256]; 12 char buf[256];
14 13
14 elm_app_info_set(elm_main, "elementary", "images/logo_small.png");
15 win = elm_win_add(NULL, "popup", ELM_WIN_BASIC); 15 win = elm_win_add(NULL, "popup", ELM_WIN_BASIC);
16 elm_win_title_set(win, "Popup"); 16 elm_win_title_set(win, "Popup");
17 elm_win_autodel_set(win, EINA_TRUE); 17 elm_win_autodel_set(win, EINA_TRUE);
@@ -34,7 +34,7 @@ elm_main(int argc, char **argv)
34 elm_object_part_text_set(popup, "title,text", "Title"); 34 elm_object_part_text_set(popup, "title,text", "Title");
35 35
36 icon1 = elm_icon_add(popup); 36 icon1 = elm_icon_add(popup);
37 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", DATA_DIR); 37 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
38 elm_icon_file_set(icon1, buf, NULL); 38 elm_icon_file_set(icon1, buf, NULL);
39 //Setting popup title-icon 39 //Setting popup title-icon
40 elm_object_part_content_set(popup, "title,icon", icon1); 40 elm_object_part_content_set(popup, "title,icon", icon1);