remove no-longer-necessary size hinting in list widgets
This commit is contained in:
parent
8fe2f00f75
commit
21479f5019
|
@ -69,15 +69,12 @@ EAPI void
|
||||||
e_widget_framelist_object_append(Evas_Object *obj, Evas_Object *sobj)
|
e_widget_framelist_object_append(Evas_Object *obj, Evas_Object *sobj)
|
||||||
{
|
{
|
||||||
E_Widget_Data *wd;
|
E_Widget_Data *wd;
|
||||||
Evas_Coord mw = 0, mh = 0;
|
|
||||||
|
|
||||||
wd = e_widget_data_get(obj);
|
wd = e_widget_data_get(obj);
|
||||||
|
|
||||||
elm_box_pack_end(wd->o_box, sobj);
|
elm_box_pack_end(wd->o_box, sobj);
|
||||||
e_widget_size_min_get(sobj, &mw, &mh);
|
|
||||||
E_EXPAND(sobj);
|
E_EXPAND(sobj);
|
||||||
E_FILL(sobj);
|
E_FILL(sobj);
|
||||||
evas_object_size_hint_min_set(sobj, mw, mh);
|
|
||||||
elm_box_recalculate(wd->o_box);
|
elm_box_recalculate(wd->o_box);
|
||||||
e_widget_sub_object_add(obj, sobj);
|
e_widget_sub_object_add(obj, sobj);
|
||||||
evas_object_show(sobj);
|
evas_object_show(sobj);
|
||||||
|
|
|
@ -61,8 +61,6 @@ e_widget_list_object_prepend(Evas_Object *obj, Evas_Object *sobj, int fill, int
|
||||||
wd = e_widget_data_get(obj);
|
wd = e_widget_data_get(obj);
|
||||||
|
|
||||||
mw = mh = 0;
|
mw = mh = 0;
|
||||||
e_widget_size_min_get(sobj, &mw, &mh);
|
|
||||||
evas_object_size_hint_min_set(sobj, mw, mh);
|
|
||||||
if (fill) align = -1;
|
if (fill) align = -1;
|
||||||
if (elm_box_horizontal_get(wd->o_box) == 1)
|
if (elm_box_horizontal_get(wd->o_box) == 1)
|
||||||
{
|
{
|
||||||
|
@ -101,8 +99,6 @@ e_widget_list_object_append(Evas_Object *obj, Evas_Object *sobj, int fill, int e
|
||||||
wd = e_widget_data_get(obj);
|
wd = e_widget_data_get(obj);
|
||||||
|
|
||||||
mw = mh = 0;
|
mw = mh = 0;
|
||||||
e_widget_size_min_get(sobj, &mw, &mh);
|
|
||||||
evas_object_size_hint_min_set(sobj, mw, mh);
|
|
||||||
if (fill) align = -1;
|
if (fill) align = -1;
|
||||||
if (elm_box_horizontal_get(wd->o_box) == 1)
|
if (elm_box_horizontal_get(wd->o_box) == 1)
|
||||||
{
|
{
|
||||||
|
@ -131,8 +127,6 @@ e_widget_list_object_repack(Evas_Object *obj, Evas_Object *sobj, int fill, int e
|
||||||
wd = e_widget_data_get(obj);
|
wd = e_widget_data_get(obj);
|
||||||
|
|
||||||
mw = mh = 0;
|
mw = mh = 0;
|
||||||
e_widget_size_min_get(sobj, &mw, &mh);
|
|
||||||
evas_object_size_hint_min_set(sobj, mw, mh);
|
|
||||||
if (fill) align = -1;
|
if (fill) align = -1;
|
||||||
if (elm_box_horizontal_get(wd->o_box) == 1)
|
if (elm_box_horizontal_get(wd->o_box) == 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue