summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmailcom>2013-05-14 10:36:17 +0530
committerDaniel Juyung Seo <seojuyung2@gmailcom>2013-05-14 10:36:17 +0530
commitcd532616d5eb8909b470e576cf2910227933d26e (patch)
tree064bc1cf3a8724d2b7a9a4c89a440836e540163a
parent906518963910afb333fcaed620094ce38d8c3f75 (diff)
template: clean ups.
-rw-r--r--sample/template/data/edc/layout.edc63
-rw-r--r--sample/template/src/main.c28
2 files changed, 1 insertions, 90 deletions
diff --git a/sample/template/data/edc/layout.edc b/sample/template/data/edc/layout.edc
index 62575c6..4a11e12 100644
--- a/sample/template/data/edc/layout.edc
+++ b/sample/template/data/edc/layout.edc
@@ -12,73 +12,10 @@ collections {
12 group { name:"main"; 12 group { name:"main";
13 parts { 13 parts {
14 part { name: "bg"; 14 part { name: "bg";
15 type: IMAGE;
16 description { state: "default" 0.0; 15 description { state: "default" 0.0;
17 image.normal: "bg.jpg"; 16 image.normal: "bg.jpg";
18 } 17 }
19 } 18 }
20 part { name: "elm.swallow.top";
21 type: RECT;
22 description { state: "default" 0.0;
23 rel1.relative: 0.35 0.0;
24 rel2.relative: 0.65 0.15;
25 color: 255 0 0 255;
26 }
27 }
28 part { name: "elm.text.news";
29 type: TEXT;
30 scale: 1;
31 description { state: "default" 0.0;
32 rel1.relative: 0.05 0.1;
33 rel2.relative: 0.15 0.2;
34 align: 0 0;
35 color: 200 200 200 255;
36 text { font: "Sans:style=Bold";
37 size: 12;
38 min: 0 0;
39 max: 1 0;
40 align: 0.5 0.5;
41 ellipsis: 0.0;
42 text: "News";
43 }
44 }
45 }
46 part { name: "elm.swallow.middle";
47 type: SWALLOW;
48 description { state: "default" 0.0;
49 rel1.relative: 0.06 0.17;
50 rel2.relative: 0.94 0.85;
51 }
52 }
53 part { name: "elm.swallow.bottom";
54 type: SWALLOW;
55 description { state: "default" 0.0;
56 rel1.relative: 0.1 0.87;
57 rel2.relative: 0.9 1.0;
58 }
59 }
60 part { name: "elm.swallow.left_arrow";
61 type: SWALLOW;
62 scale: 1;
63 description { state: "default" 0.0;
64 rel1.relative: 0.0 0.5;
65 rel2.relative: 0.0 0.5;
66 min: 40 50;
67 fixed: 1 1;
68 align: 0.0 0.5;
69 }
70 }
71 part { name: "elm.swallow.right_arrow";
72 type: SWALLOW;
73 scale: 1;
74 description { state: "default" 0.0;
75 rel1.relative: 1.0 0.5;
76 rel2.relative: 1.0 0.5;
77 min: 40 50;
78 fixed: 1 1;
79 align: 1.0 0.5;
80 }
81 }
82 } 19 }
83 } 20 }
84 group { name:"left_arrow"; 21 group { name:"left_arrow";
diff --git a/sample/template/src/main.c b/sample/template/src/main.c
index 96b8da0..a2be9a9 100644
--- a/sample/template/src/main.c
+++ b/sample/template/src/main.c
@@ -1,30 +1,4 @@
1#include <Elementary.h> 1int main(int argc, char **argv)
2
3void
4init()
5{ 2{
6 Evas_Object *win, *layout;
7 char buf[PATH_MAX];
8
9 //Create a Window
10 win = elm_win_util_standard_add(elm_app_name_get(), elm_app_name_get());
11 elm_win_focus_highlight_enabled_set(win, EINA_TRUE);
12 elm_win_autodel_set(win, EINA_TRUE);
13 evas_object_resize(win, 720, 400);
14 evas_object_show(win);
15}
16
17EAPI_MAIN int
18elm_main(int argc, char **argv)
19{
20 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
21
22 init();
23
24 elm_run();
25
26 elm_shutdown();
27
28 return 0; 3 return 0;
29} 4}
30ELM_MAIN()