summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-01-08 08:23:58 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-01-08 08:24:52 +0900
commit8c5930d6a180b4a247f4caf62087bc9ab19b8029 (patch)
tree42bffa6790687fdd7b4596034aaaa996c44af54f /src
parent51268fe2265929a206162167fcf833598b7ed9d2 (diff)
elm: replace 0 or 1 with EINA_FALSE or EINA_TRUE
Diffstat (limited to 'src')
-rw-r--r--src/bin/test_3d.c2
-rw-r--r--src/bin/test_cursor.c2
-rw-r--r--src/bin/test_launcher.c6
-rw-r--r--src/bin/test_panel.c4
-rw-r--r--src/bin/test_toolbar.c6
-rw-r--r--src/lib/elm_colorselector.c2
-rw-r--r--src/lib/elm_diskselector.c2
-rw-r--r--src/lib/elm_flip.c16
-rw-r--r--src/lib/elm_web.c2
9 files changed, 21 insertions, 21 deletions
diff --git a/src/bin/test_3d.c b/src/bin/test_3d.c
index f2e2b75b2..8d6edf38c 100644
--- a/src/bin/test_3d.c
+++ b/src/bin/test_3d.c
@@ -123,7 +123,7 @@ _cube_pos(Cube *c,
123 evas_map_util_3d_perspective(m, cx, cy, foc, z0); 123 evas_map_util_3d_perspective(m, cx, cy, foc, z0);
124 if (evas_map_util_clockwise_get(m)) 124 if (evas_map_util_clockwise_get(m))
125 { 125 {
126 evas_object_map_enable_set(c->side[i].o, 1); 126 evas_object_map_enable_set(c->side[i].o, EINA_TRUE);
127 evas_object_map_set(c->side[i].o, m); 127 evas_object_map_set(c->side[i].o, m);
128 evas_object_show(c->side[i].o); 128 evas_object_show(c->side[i].o);
129 } 129 }
diff --git a/src/bin/test_cursor.c b/src/bin/test_cursor.c
index 0e60a68fe..5b5a782a5 100644
--- a/src/bin/test_cursor.c
+++ b/src/bin/test_cursor.c
@@ -194,7 +194,7 @@ test_cursor2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
194 evas_object_show(bx); 194 evas_object_show(bx);
195 195
196 o = elm_toolbar_add(win); 196 o = elm_toolbar_add(win);
197 elm_toolbar_homogeneous_set(o, 0); 197 elm_toolbar_homogeneous_set(o, EINA_FALSE);
198 evas_object_size_hint_weight_set(o, 0.0, 0.0); 198 evas_object_size_hint_weight_set(o, 0.0, 0.0);
199 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0); 199 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0);
200 tb_it = elm_toolbar_item_append(o, NULL, "Bogosity", NULL, NULL); 200 tb_it = elm_toolbar_item_append(o, NULL, "Bogosity", NULL, NULL);
diff --git a/src/bin/test_launcher.c b/src/bin/test_launcher.c
index 9d871720e..a6baf4dbb 100644
--- a/src/bin/test_launcher.c
+++ b/src/bin/test_launcher.c
@@ -514,7 +514,7 @@ l3_mode_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSE
514 if (elm_mapbuf_enabled_get(mb)) 514 if (elm_mapbuf_enabled_get(mb))
515 elm_mapbuf_enabled_set(mb, EINA_FALSE); 515 elm_mapbuf_enabled_set(mb, EINA_FALSE);
516 else 516 else
517 elm_mapbuf_enabled_set(mb, 1); 517 elm_mapbuf_enabled_set(mb, EINA_TRUE);
518 } 518 }
519} 519}
520 520
@@ -873,7 +873,7 @@ test_launcher3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
873 873
874 ck = elm_check_add(win); 874 ck = elm_check_add(win);
875 elm_object_text_set(ck, "A"); 875 elm_object_text_set(ck, "A");
876 elm_check_state_set(ck, 1); 876 elm_check_state_set(ck, EINA_TRUE);
877 evas_object_smart_callback_add(ck, "changed", l3_alpha_cb, win); 877 evas_object_smart_callback_add(ck, "changed", l3_alpha_cb, win);
878 evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 878 evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
879 evas_object_size_hint_align_set(ck, 0.20, 0.99); 879 evas_object_size_hint_align_set(ck, 0.20, 0.99);
@@ -882,7 +882,7 @@ test_launcher3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
882 882
883 ck = elm_check_add(win); 883 ck = elm_check_add(win);
884 elm_object_text_set(ck, "Smo"); 884 elm_object_text_set(ck, "Smo");
885 elm_check_state_set(ck, 1); 885 elm_check_state_set(ck, EINA_TRUE);
886 evas_object_smart_callback_add(ck, "changed", l3_smooth_cb, win); 886 evas_object_smart_callback_add(ck, "changed", l3_smooth_cb, win);
887 evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 887 evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
888 evas_object_size_hint_align_set(ck, 0.40, 0.99); 888 evas_object_size_hint_align_set(ck, 0.40, 0.99);
diff --git a/src/bin/test_panel.c b/src/bin/test_panel.c
index dd984ae99..f4ea10e84 100644
--- a/src/bin/test_panel.c
+++ b/src/bin/test_panel.c
@@ -180,7 +180,7 @@ test_panel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
180 evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL); 180 evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL);
181 181
182 toolbar = elm_toolbar_add(panel); 182 toolbar = elm_toolbar_add(panel);
183 elm_toolbar_homogeneous_set(toolbar, 0); 183 elm_toolbar_homogeneous_set(toolbar, EINA_FALSE);
184 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE); 184 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE);
185 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0); 185 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0);
186 evas_object_size_hint_align_set(toolbar, EVAS_HINT_FILL, EVAS_HINT_FILL); 186 evas_object_size_hint_align_set(toolbar, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -251,7 +251,7 @@ test_panel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
251 elm_panel_hidden_set(panel, EINA_TRUE); 251 elm_panel_hidden_set(panel, EINA_TRUE);
252 252
253 toolbar = elm_toolbar_add(panel); 253 toolbar = elm_toolbar_add(panel);
254 elm_toolbar_homogeneous_set(toolbar, 0); 254 elm_toolbar_homogeneous_set(toolbar, EINA_FALSE);
255 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE); 255 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE);
256 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0); 256 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0);
257 evas_object_size_hint_align_set(toolbar, EVAS_HINT_FILL, EVAS_HINT_FILL); 257 evas_object_size_hint_align_set(toolbar, EVAS_HINT_FILL, EVAS_HINT_FILL);
diff --git a/src/bin/test_toolbar.c b/src/bin/test_toolbar.c
index 93be77ea8..433d18819 100644
--- a/src/bin/test_toolbar.c
+++ b/src/bin/test_toolbar.c
@@ -145,7 +145,7 @@ test_toolbar(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
145 evas_object_show(tb); 145 evas_object_show(tb);
146 146
147 tb = elm_table_add(win); 147 tb = elm_table_add(win);
148 //elm_table_homogeneous_set(tb, 1); 148 //elm_table_homogeneous_set(tb, EINA_TRUE);
149 evas_object_size_hint_weight_set(tb, 0.0, EVAS_HINT_EXPAND); 149 evas_object_size_hint_weight_set(tb, 0.0, EVAS_HINT_EXPAND);
150 evas_object_size_hint_fill_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL); 150 evas_object_size_hint_fill_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL);
151 151
@@ -249,7 +249,7 @@ test_toolbar2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
249 evas_object_show(tb); 249 evas_object_show(tb);
250 250
251 tb = elm_table_add(win); 251 tb = elm_table_add(win);
252 //elm_table_homogeneous_set(tb, 1); 252 //elm_table_homogeneous_set(tb, EINA_TRUE);
253 evas_object_size_hint_weight_set(tb, 0.0, EVAS_HINT_EXPAND); 253 evas_object_size_hint_weight_set(tb, 0.0, EVAS_HINT_EXPAND);
254 evas_object_size_hint_fill_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL); 254 evas_object_size_hint_fill_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL);
255 255
@@ -774,7 +774,7 @@ test_toolbar6(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
774 evas_object_show(tb); 774 evas_object_show(tb);
775 775
776 tb = elm_table_add(win); 776 tb = elm_table_add(win);
777 //elm_table_homogeneous_set(tb, 1); 777 //elm_table_homogeneous_set(tb, EINA_TRUE);
778 evas_object_size_hint_weight_set(tb, 0.0, EVAS_HINT_EXPAND); 778 evas_object_size_hint_weight_set(tb, 0.0, EVAS_HINT_EXPAND);
779 evas_object_size_hint_fill_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL); 779 evas_object_size_hint_fill_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL);
780 780
diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c
index d471ea671..f744fe3b8 100644
--- a/src/lib/elm_colorselector.c
+++ b/src/lib/elm_colorselector.c
@@ -706,7 +706,7 @@ _color_picker_add(Evas_Object *obj, Elm_Colorselector_Smart_Data *sd)
706 evas_object_image_smooth_scale_set(im, EINA_FALSE); 706 evas_object_image_smooth_scale_set(im, EINA_FALSE);
707 evas_object_image_colorspace_set(im, EVAS_COLORSPACE_ARGB8888); 707 evas_object_image_colorspace_set(im, EVAS_COLORSPACE_ARGB8888);
708 evas_object_image_size_set(im, 17, 17); 708 evas_object_image_size_set(im, 17, 17);
709 evas_object_image_alpha_set(im, 1); 709 evas_object_image_alpha_set(im, EINA_TRUE);
710 evas_object_image_filled_set(im, EINA_TRUE); 710 evas_object_image_filled_set(im, EINA_TRUE);
711 edje_object_part_swallow(ed, "elm.picker", im); 711 edje_object_part_swallow(ed, "elm.picker", im);
712 elm_widget_sub_object_add(obj, im); 712 elm_widget_sub_object_add(obj, im);
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 978a0cfa3..99c60a028 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -1182,7 +1182,7 @@ _icon_duplicate(Evas_Object *icon)
1182 elm_image_file_get(icon, &file, &group); 1182 elm_image_file_get(icon, &file, &group);
1183 ic = elm_icon_add(icon); 1183 ic = elm_icon_add(icon);
1184 elm_image_file_set(ic, file, group); 1184 elm_image_file_set(ic, file, group);
1185 elm_image_resizable_set(ic, 1, 1); 1185 elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
1186 1186
1187 return ic; 1187 return ic;
1188} 1188}
diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c
index c24e25da9..0ba69d2cb 100644
--- a/src/lib/elm_flip.c
+++ b/src/lib/elm_flip.c
@@ -1170,7 +1170,7 @@ _flip_do(Evas_Object *obj,
1170 evas_map_util_3d_lighting(mf, lx, ly, lz, lr, lg, lb, lar, lag, lab); 1170 evas_map_util_3d_lighting(mf, lx, ly, lz, lr, lg, lb, lar, lag, lab);
1171 evas_map_util_3d_perspective(mf, px, py, 0, foc); 1171 evas_map_util_3d_perspective(mf, px, py, 0, foc);
1172 evas_object_map_set(sd->front.content, mf); 1172 evas_object_map_set(sd->front.content, mf);
1173 evas_object_map_enable_set(sd->front.content, 1); 1173 evas_object_map_enable_set(sd->front.content, EINA_TRUE);
1174 if (evas_map_util_clockwise_get(mf)) evas_object_show(sd->front.clip); 1174 if (evas_map_util_clockwise_get(mf)) evas_object_show(sd->front.clip);
1175 else evas_object_hide(sd->front.clip); 1175 else evas_object_hide(sd->front.clip);
1176 } 1176 }
@@ -1180,7 +1180,7 @@ _flip_do(Evas_Object *obj,
1180 evas_map_util_3d_lighting(mb, lx, ly, lz, lr, lg, lb, lar, lag, lab); 1180 evas_map_util_3d_lighting(mb, lx, ly, lz, lr, lg, lb, lar, lag, lab);
1181 evas_map_util_3d_perspective(mb, px, py, 0, foc); 1181 evas_map_util_3d_perspective(mb, px, py, 0, foc);
1182 evas_object_map_set(sd->back.content, mb); 1182 evas_object_map_set(sd->back.content, mb);
1183 evas_object_map_enable_set(sd->back.content, 1); 1183 evas_object_map_enable_set(sd->back.content, EINA_TRUE);
1184 if (evas_map_util_clockwise_get(mb)) evas_object_show(sd->back.clip); 1184 if (evas_map_util_clockwise_get(mb)) evas_object_show(sd->back.clip);
1185 else evas_object_hide(sd->back.clip); 1185 else evas_object_hide(sd->back.clip);
1186 } 1186 }
@@ -1349,8 +1349,8 @@ _flip(Evas_Object *obj)
1349#endif 1349#endif
1350 sd->pageflip = EINA_FALSE; 1350 sd->pageflip = EINA_FALSE;
1351 _state_end(sd); 1351 _state_end(sd);
1352 evas_object_map_enable_set(sd->front.content, 0); 1352 evas_object_map_enable_set(sd->front.content, EINA_FALSE);
1353 evas_object_map_enable_set(sd->back.content, 0); 1353 evas_object_map_enable_set(sd->back.content, EINA_FALSE);
1354 // FIXME: hack around evas rendering bug (only fix makes evas bitch-slow 1354 // FIXME: hack around evas rendering bug (only fix makes evas bitch-slow
1355 evas_object_resize(sd->front.content, 0, 0); 1355 evas_object_resize(sd->front.content, 0, 0);
1356 evas_object_resize(sd->back.content, 0, 0); 1356 evas_object_resize(sd->back.content, 0, 0);
@@ -1529,8 +1529,8 @@ _event_anim(void *data,
1529 1529
1530 sd->pageflip = EINA_FALSE; 1530 sd->pageflip = EINA_FALSE;
1531 _state_end(sd); 1531 _state_end(sd);
1532 evas_object_map_enable_set(sd->front.content, 0); 1532 evas_object_map_enable_set(sd->front.content, EINA_FALSE);
1533 evas_object_map_enable_set(sd->back.content, 0); 1533 evas_object_map_enable_set(sd->back.content, EINA_FALSE);
1534 // FIXME: hack around evas rendering bug (only fix makes evas bitch-slow 1534 // FIXME: hack around evas rendering bug (only fix makes evas bitch-slow
1535 evas_object_resize(sd->front.content, 0, 0); 1535 evas_object_resize(sd->front.content, 0, 0);
1536 evas_object_resize(sd->back.content, 0, 0); 1536 evas_object_resize(sd->back.content, 0, 0);
@@ -1971,8 +1971,8 @@ _elm_flip_go_to(Evas_Object *obj,
1971 evas_smart_objects_calculate(evas_object_evas_get(obj)); 1971 evas_smart_objects_calculate(evas_object_evas_get(obj));
1972 _flip(obj); 1972 _flip(obj);
1973 // FIXME: hack around evas rendering bug (only fix makes evas bitch-slow) 1973 // FIXME: hack around evas rendering bug (only fix makes evas bitch-slow)
1974 evas_object_map_enable_set(sd->front.content, 0); 1974 evas_object_map_enable_set(sd->front.content, EINA_FALSE);
1975 evas_object_map_enable_set(sd->back.content, 0); 1975 evas_object_map_enable_set(sd->back.content, EINA_FALSE);
1976 evas_object_resize(sd->front.content, 0, 0); 1976 evas_object_resize(sd->front.content, 0, 0);
1977 evas_object_resize(sd->back.content, 0, 0); 1977 evas_object_resize(sd->back.content, 0, 0);
1978 evas_smart_objects_calculate(evas_object_evas_get(obj)); 1978 evas_smart_objects_calculate(evas_object_evas_get(obj));
diff --git a/src/lib/elm_web.c b/src/lib/elm_web.c
index 06d3f90dd..b86c6c9fd 100644
--- a/src/lib/elm_web.c
+++ b/src/lib/elm_web.c
@@ -548,7 +548,7 @@ _run_dialog(Evas_Object *parent,
548 if (type == DIALOG_PROMPT || type == DIALOG_CONFIRM) 548 if (type == DIALOG_PROMPT || type == DIALOG_CONFIRM)
549 { 549 {
550 Evas_Object *bx_h = elm_box_add(dialog_data->box); 550 Evas_Object *bx_h = elm_box_add(dialog_data->box);
551 elm_box_horizontal_set(bx_h, 1); 551 elm_box_horizontal_set(bx_h, EINA_TRUE);
552 elm_box_pack_end(dialog_data->box, bx_h); 552 elm_box_pack_end(dialog_data->box, bx_h);
553 evas_object_size_hint_weight_set 553 evas_object_size_hint_weight_set
554 (bx_h, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 554 (bx_h, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);