efl_ui: remove duplicated hint_min_set code

Summary:
evas_object_size_hint_min_set call efl_gfx_hint_size_restricted_min_set
internally.

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9567
This commit is contained in:
Yeongjong Lee 2019-08-14 09:56:42 -04:00 committed by Mike Blumenkrantz
parent c857955a4e
commit 51a644d966
4 changed files with 5 additions and 20 deletions

View File

@ -93,10 +93,7 @@ _sizing_eval(Evas_Object *obj)
elm_coords_finger_size_adjust(fingx, &minw, fingy, &minh);
if (elm_widget_is_legacy(obj))
evas_object_size_hint_min_set(obj, minw, minh);
else
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
evas_object_size_hint_max_set(obj, maxw, maxh);
}

View File

@ -38,10 +38,7 @@ _sizing_eval(Evas_Object *obj,
evas_object_size_hint_min_get(obj, &cminw, &cminh);
if ((minw == cminw) && (minh == cminh)) return;
if (elm_widget_is_legacy(obj))
evas_object_size_hint_min_set(obj, minw, minh);
else
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
evas_object_size_hint_max_set(obj, -1, -1);
}

View File

@ -802,10 +802,7 @@ _efl_ui_image_sizing_eval(Evas_Object *obj)
}
}
if (elm_widget_is_legacy(obj))
evas_object_size_hint_min_set(obj, minw, minh);
else
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
evas_object_size_hint_max_set(obj, maxw, maxh);
if (sd->img)

View File

@ -116,10 +116,7 @@ _sizing_eval(Evas_Object *obj)
evas_object_size_hint_max_get
(wd->resize_obj, &maxw, &maxh);
if (elm_widget_is_legacy(obj))
evas_object_size_hint_min_set(obj, minw, minh);
else
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
evas_object_size_hint_max_set(obj, maxw, maxh);
}
@ -1864,10 +1861,7 @@ _efl_ui_image_zoomable_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Image_Zoomable
(priv->img, EVAS_CALLBACK_IMAGE_PRELOADED, _main_img_preloaded_cb, obj);
edje_object_size_min_calc(edje, &minw, &minh);
if (elm_widget_is_legacy(obj))
evas_object_size_hint_min_set(obj, minw, minh);
else
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
_efl_ui_image_zoomable_edje_object_attach(obj);