forked from enlightenment/efl
elm test: Use EVAS_HINT_EXPAND and EVAS_HINT_FILL instead of 1.0 and -1.0.
SVN revision: 81948
This commit is contained in:
parent
1ccac38ac1
commit
5953de5f2a
|
@ -650,8 +650,8 @@ test_box_transition(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *ev
|
|||
|
||||
bt = elm_button_add(win);
|
||||
elm_object_text_set(bt, "Button 1");
|
||||
evas_object_size_hint_weight_set(bt, 1.0, 1.0);
|
||||
evas_object_size_hint_align_set(bt, -1.0, -1.0);
|
||||
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
evas_object_smart_callback_add(bt, "clicked", _del_cb, bx);
|
||||
elm_box_pack_end(bx, bt);
|
||||
evas_object_resize(bt, 100, 100);
|
||||
|
@ -659,8 +659,8 @@ test_box_transition(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *ev
|
|||
|
||||
bt = elm_button_add(win);
|
||||
elm_object_text_set(bt, "Button 2");
|
||||
evas_object_size_hint_weight_set(bt, 1.0, 1.0);
|
||||
evas_object_size_hint_align_set(bt, -1.0, -1.0);
|
||||
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
evas_object_smart_callback_add(bt, "clicked", _del_cb, bx);
|
||||
elm_box_pack_end(bx, bt);
|
||||
evas_object_resize(bt, 100, 100);
|
||||
|
@ -668,8 +668,8 @@ test_box_transition(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *ev
|
|||
|
||||
bt = elm_button_add(win);
|
||||
elm_object_text_set(bt, "Button 3");
|
||||
evas_object_size_hint_weight_set(bt, 1.0, 1.0);
|
||||
evas_object_size_hint_align_set(bt, -1.0, -1.0);
|
||||
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
evas_object_smart_callback_add(bt, "clicked", _del_cb, bx);
|
||||
elm_box_pack_end(bx, bt);
|
||||
evas_object_resize(bt, 100, 100);
|
||||
|
|
|
@ -69,8 +69,8 @@ test_panes(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
|
|||
//
|
||||
bt = elm_button_add(win);
|
||||
elm_object_text_set(bt, "Left");
|
||||
evas_object_size_hint_weight_set(bt, 1.0, 1.0);
|
||||
evas_object_size_hint_align_set(bt, -1.0, -1.0);
|
||||
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
evas_object_show(bt);
|
||||
elm_object_part_content_set(panes, "left", bt);
|
||||
//
|
||||
|
|
|
@ -85,7 +85,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
|
|||
module[0] = NULL;
|
||||
weather[0] = eweather_object_add(evas_object_evas_get(win));
|
||||
evas_object_size_hint_weight_set(weather[0], EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(weather[0], -1.0, -1.0);
|
||||
evas_object_size_hint_align_set(weather[0], EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
elm_object_part_content_set(fl, "front", weather[0]);
|
||||
evas_object_show(weather[0]);
|
||||
|
||||
|
@ -93,7 +93,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
|
|||
weather[1] = eweather_object_add(evas_object_evas_get(win));
|
||||
eweather = eweather_object_eweather_get(weather[1]);
|
||||
evas_object_size_hint_weight_set(weather[1], EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(weather[1], -1.0, -1.0);
|
||||
evas_object_size_hint_align_set(weather[1], EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
elm_object_part_content_set(fl, "back", weather[1]);
|
||||
evas_object_show(weather[1]);
|
||||
|
||||
|
@ -102,7 +102,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
|
|||
//
|
||||
bx0 = elm_box_add(win);
|
||||
elm_box_horizontal_set(bx0, EINA_TRUE);
|
||||
evas_object_size_hint_weight_set(bx0, 1.0, 0.0);
|
||||
evas_object_size_hint_weight_set(bx0, EVAS_HINT_EXPAND, 0.0);
|
||||
elm_box_pack_end(bx, bx0);
|
||||
evas_object_show(bx0);
|
||||
|
||||
|
@ -122,7 +122,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
|
|||
//
|
||||
bx0 = elm_box_add(win);
|
||||
elm_box_horizontal_set(bx0, EINA_TRUE);
|
||||
evas_object_size_hint_weight_set(bx0, 1.0, 0.0);
|
||||
evas_object_size_hint_weight_set(bx0, EVAS_HINT_EXPAND, 0.0);
|
||||
elm_box_pack_end(bx, bx0);
|
||||
evas_object_show(bx0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue