summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-27 00:04:09 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-27 00:04:09 +0900
commit3d1105c02738dc21e5fc2c1a826fa9ecb30af90f (patch)
tree78db710e07e5df8fd3e94c958b71d38c7ec1229e
parent4972363be1ea99dbf9d44cdc09126e405ecf648c (diff)
evas/recalc_err: added evas recalc error sample.
-rw-r--r--.gitignore1
-rw-r--r--evas/Makefile5
-rw-r--r--evas/recalc_err.c37
3 files changed, 42 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 563d8a7..d9009a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,6 +42,7 @@ evas/key_down
42evas/longpress 42evas/longpress
43evas/color 43evas/color
44evas/freeze 44evas/freeze
45evas/recalc_err
45focus/focus 46focus/focus
46images/*.jpg 47images/*.jpg
47tutorial_01 48tutorial_01
diff --git a/evas/Makefile b/evas/Makefile
index 812b151..f77066e 100644
--- a/evas/Makefile
+++ b/evas/Makefile
@@ -1,4 +1,4 @@
1all: premultiplied-color smart-member preload mouse-out mouse-out.edj image-data image-color event evas_leak del geo key_down longpress color freeze freeze.edj 1all: premultiplied-color smart-member preload mouse-out mouse-out.edj image-data image-color event evas_leak del geo key_down longpress color freeze freeze.edj recalc_err
2 2
3premultiplied-color: premultiplied-color.c 3premultiplied-color: premultiplied-color.c
4 gcc premultiplied-color.c -o premultiplied-color `pkg-config --cflags --libs elementary` 4 gcc premultiplied-color.c -o premultiplied-color `pkg-config --cflags --libs elementary`
@@ -50,3 +50,6 @@ freeze: freeze.c
50 50
51freeze.edj: freeze.edc 51freeze.edj: freeze.edc
52 edje_cc freeze.edc 52 edje_cc freeze.edc
53
54recalc_err: recalc_err.c
55 gcc recalc_err.c -o recalc_err `pkg-config --cflags --libs elementary` -g
diff --git a/evas/recalc_err.c b/evas/recalc_err.c
new file mode 100644
index 0000000..d6139a9
--- /dev/null
+++ b/evas/recalc_err.c
@@ -0,0 +1,37 @@
1/*
2 * This leads to the following error:
3 * ERR<20180>:evas_main lib/evas/canvas/evas_object_smart.c:1075 _smart_need_recalculate_set() Object 0x80005e30 is not stable during recalc loop
4 *
5 * gcc recalc_err.c -o recalc_err `pkg-config --cflags --libs elementary` -g
6 */
7#include <Elementary.h>
8
9EAPI_MAIN int
10elm_main(int argc, char **argv)
11{
12 Evas_Object *win = NULL, *box = NULL, *box2 = NULL;
13
14 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
15
16 win = elm_win_util_standard_add("recalc_err", "Recalc Err");
17 elm_win_autodel_set(win, EINA_TRUE);
18 evas_object_resize(win, 300, 400);
19 evas_object_show(win);
20
21 box = elm_box_add(win);
22 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
23 elm_win_resize_object_add(win, box);
24 evas_object_show(box);
25
26 box2 = elm_box_add(box);
27 evas_object_size_hint_weight_set(box2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
28 elm_win_resize_object_add(win, box2); // wrong!!!!
29 elm_box_pack_end(box, box2);
30 evas_object_show(box2);
31
32 elm_run();
33 elm_shutdown();
34
35 return 0;
36}
37ELM_MAIN()