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:
parent
c857955a4e
commit
51a644d966
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue