efl_ui_layout: remove efl_gfx_hint_size_min_set in _sizing_eval 13/212113/1 accepted/tizen/unified/20190818.221636 submit/tizen/20190814.085144
authorYeongjong Lee <yj34.lee@samsung.com>
Wed, 14 Aug 2019 08:38:04 +0000 (17:38 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 14 Aug 2019 08:40:42 +0000 (17:40 +0900)
Summary:
`evas_object_size_hint_min_set` is replaced with `efl_gfx_hint_size_min_set` in
4d79efce6. it is able to have backward compatibility issue because
`evas_object_size_hint_min_set` call `efl_gfx_hint_size_restricted_min_set`
internally.
```
evas_object_main.c:2501
EAPI void
evas_object_size_hint_min_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
{
   efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(w, h));
}
```

This patch remove unnecessary min_set call.

Test Plan: elementary_test

Reviewers: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9566

Change-Id: Ie8843df55e40aa018b3628e17e5397507cef7cb1

src/lib/elementary/efl_ui_layout.c

index b27feb2..ed044c8 100644 (file)
@@ -222,10 +222,7 @@ _sizing_eval(Evas_Object *obj, Efl_Ui_Layout_Data *sd, Elm_Layout_Data *ld)
    efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
 
    if (ld)
-     {
-        ld->restricted_calc_w = ld->restricted_calc_h = EINA_FALSE;
-        efl_gfx_hint_size_min_set(obj, EINA_SIZE2D(minw, minh));
-     }
+     ld->restricted_calc_w = ld->restricted_calc_h = EINA_FALSE;
 }
 
 void