summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2011-07-03 07:18:35 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2011-07-03 07:18:35 +0000
commitee33c306dc31bc7e3fa71e2f6db86ec9110033d3 (patch)
tree0a812393c834b74327d06ad30cecfc2158feeba8
parentcb9e80d58eb39c756bb1ca95ccf6a977e349e6bd (diff)
PROTO/ev: Fixed afterimage bug.
Added bg to main window as well. Changed variable name from obj to bg. bg is worth having its own variable name. SVN revision: 60948
-rw-r--r--ev.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/ev.c b/ev.c
index c090963..51ec74d 100644
--- a/ev.c
+++ b/ev.c
@@ -172,7 +172,7 @@ load_stuff(int argc, char **argv, Evas_Object *list)
172int 172int
173main(int argc, char *argv[]) 173main(int argc, char *argv[])
174{ 174{
175 Evas_Object *listwin, *win, *box, *obj; 175 Evas_Object *listwin, *win, *bg, *box;
176 int num_wins, nw; 176 int num_wins, nw;
177 Ecore_X_Window zw, zwr, *roots; 177 Ecore_X_Window zw, zwr, *roots;
178 178
@@ -195,6 +195,12 @@ main(int argc, char *argv[])
195 195
196 win = elm_win_add(NULL, NULL, ELM_WIN_BASIC); 196 win = elm_win_add(NULL, NULL, ELM_WIN_BASIC);
197 elm_win_autodel_set(win, EINA_TRUE); 197 elm_win_autodel_set(win, EINA_TRUE);
198
199 bg = elm_bg_add(win);
200 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
201 elm_win_resize_object_add(win, bg);
202 evas_object_show(bg);
203
198 img = elm_image_add(win); 204 img = elm_image_add(win);
199 evas_object_size_hint_weight_set(img, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 205 evas_object_size_hint_weight_set(img, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
200 evas_object_size_hint_align_set(img, EVAS_HINT_FILL, EVAS_HINT_FILL); 206 evas_object_size_hint_align_set(img, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -221,10 +227,10 @@ main(int argc, char *argv[])
221 listwin = elm_win_add(NULL, "ev", ELM_WIN_BASIC); 227 listwin = elm_win_add(NULL, "ev", ELM_WIN_BASIC);
222 elm_win_autodel_set(listwin, EINA_TRUE); 228 elm_win_autodel_set(listwin, EINA_TRUE);
223 229
224 obj = elm_bg_add(listwin); 230 bg = elm_bg_add(listwin);
225 evas_object_size_hint_weight_set(obj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 231 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
226 elm_win_resize_object_add(listwin, obj); 232 elm_win_resize_object_add(listwin, bg);
227 evas_object_show(obj); 233 evas_object_show(bg);
228 234
229 box = elm_box_add(listwin); 235 box = elm_box_add(listwin);
230 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 236 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);