summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-24 14:49:10 +0100
committerTom Hacohen <tom@stosb.com>2014-09-24 14:55:12 +0100
commit9eef07be3256af64cd89f71bb6f0b6672712c241 (patch)
tree772ad7a92687847c78a6f1df95219df8f8f47176
parentdd03c3ca1b7a9cf252da6d37bf4471dee45b9b4b (diff)
Add missing theme and fix group name.
-rw-r--r--data/default.edc67
-rw-r--r--src/bin/main.c2
2 files changed, 68 insertions, 1 deletions
diff --git a/data/default.edc b/data/default.edc
new file mode 100644
index 0000000..31d2ed8
--- /dev/null
+++ b/data/default.edc
@@ -0,0 +1,67 @@
1collections {
2 group { name: "main_win";
3 parts {
4 rect { name: "bg";
5 desc {
6 color: 0 0 0 255;
7 }
8 }
9 part { name: "slide_cur";
10 type: SWALLOW;
11 desc {
12 }
13 }
14 }
15 }
16 group { name: "preview_win";
17 parts {
18 rect { name: "upper_part";
19 desc { state: "default" 0.0;
20 color: 0 0 0 0;
21 rel2.relative: 1.0 0.9;
22 }
23 part { name: "slide_cur";
24 type: SWALLOW;
25 desc {
26 rel2.relative: 0.6 1.0;
27 }
28 }
29 part { name: "preview_area";
30 type: RECT;
31 desc {
32 color: 0 0 0 0;
33 rel1.to_x: "slide_cur";
34 rel1.relative: 1.0 0.0;
35 }
36 part { name: "slide_prev";
37 type: SWALLOW;
38 desc {
39 }
40 }
41 }
42 }
43 text { name: "countdown_text";
44 desc { state: "default" 0.0;
45 color: 255 255 255 255;
46 rel1.relative: 0.0 0.9;
47 text {
48 text: "00:00:10";
49 ellipsis: -1;
50 font: "Sans";
51 size: 30;
52 min: 1 1;
53 align: 0.5 0.5;
54 }
55 }
56 desc { state: "almost_done";
57 inherit: "default" 0.0;
58 color: 0 255 0 255;
59 }
60 desc { state: "done";
61 inherit: "default" 0.0;
62 color: 255 0 0 255;
63 }
64 }
65 }
66 }
67}
diff --git a/src/bin/main.c b/src/bin/main.c
index 604551c..8584228 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -139,7 +139,7 @@ _create_win(Gifter_Win *win, const char *group_name)
139 evas_object_resize(win->win, w, h); 139 evas_object_resize(win->win, w, h);
140 } 140 }
141 141
142 eo_do(win->layout, elm_obj_container_content_set("main_slide", win->pdf)); 142 eo_do(win->layout, elm_obj_container_content_set("slide_cur", win->pdf));
143 143
144 evas_object_smart_callback_add(win->win, "delete,request", my_win_del, NULL); 144 evas_object_smart_callback_add(win->win, "delete,request", my_win_del, NULL);
145 evas_object_show(win->win); 145 evas_object_show(win->win);