{
parent = elm_widget_parent_get(parent);
sd = evas_object_smart_data_get(parent);
- if (sd->resize_obj)
- {
- if (elm_widget_focus_get(sd->resize_obj))
- elm_widget_focused_object_clear(sd->resize_obj);
- }
+ if ((sd->resize_obj) && (elm_widget_focus_get(sd->resize_obj)))
+ elm_widget_focused_object_clear(sd->resize_obj);
else
{
const Eina_List *l;
do
{
parent_obj = sd->parent_obj;
- child_obj = sd->obj;
+ if ((!parent_obj) || (!_elm_widget_is(parent_obj))) break;
sd = evas_object_smart_data_get(parent_obj);
-
- if ((!parent_obj) || (!sd) || (!_elm_widget_is(parent_obj))) break;
+ if (!sd) break;
+ child_obj = sd->obj;
evas_object_geometry_get(parent_obj, &px, &py, NULL, NULL);
evas_object_geometry_get(child_obj, &cx, &cy, NULL, NULL);