evas_object_smart_callback_call(sd->obj, "sub-object-del", obj);
}
+static void
+_sub_obj_hide(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
+{
+ _if_focused_revert(obj, EINA_TRUE);
+}
+
static void
_sub_obj_mouse_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
sd->subobjs = eina_list_append(sd->subobjs, sobj);
evas_object_data_set(sobj, "elm-parent", obj);
- evas_object_event_callback_add(sobj, EVAS_CALLBACK_DEL, _sub_obj_del, sd);
+ evas_object_event_callback_add(sobj, EVAS_CALLBACK_DEL, _sub_obj_del, sd);
+ if (_elm_widget_is(sobj))
+ evas_object_event_callback_add(sobj, EVAS_CALLBACK_HIDE, _sub_obj_hide, sd);
evas_object_smart_callback_call(obj, "sub-object-add", sobj);
scale = elm_widget_scale_get(sobj);
th = elm_widget_theme_get(sobj);
sd->subobjs = eina_list_remove(sd->subobjs, sobj);
evas_object_event_callback_del_full(sobj, EVAS_CALLBACK_DEL,
_sub_obj_del, sd);
+ if (_elm_widget_is(sobj))
+ evas_object_event_callback_del_full(sobj, EVAS_CALLBACK_HIDE,
+ _sub_obj_hide, sd);
evas_object_smart_callback_call(obj, "sub-object-del", sobj);
}
{
Smart_Data *sd2 = evas_object_smart_data_get(sd->resize_obj);
if (sd2) sd2->parent_obj = NULL;
+ evas_object_event_callback_del_full(sd->resize_obj, EVAS_CALLBACK_HIDE,
+ _sub_obj_hide, sd);
}
evas_object_event_callback_del_full(sd->resize_obj, EVAS_CALLBACK_DEL,
_sub_obj_del, sd);
{
Smart_Data *sd2 = evas_object_smart_data_get(sobj);
if (sd2) sd2->parent_obj = NULL;
+ evas_object_event_callback_del_full(sobj, EVAS_CALLBACK_HIDE,
+ _sub_obj_hide, sd);
}
evas_object_event_callback_del_full(sobj, EVAS_CALLBACK_DEL,
_sub_obj_del, sd);
{
Smart_Data *sd2 = evas_object_smart_data_get(sd->resize_obj);
if (sd2) sd2->parent_obj = obj;
+ evas_object_event_callback_add(sobj, EVAS_CALLBACK_HIDE,
+ _sub_obj_hide, sd);
}
evas_object_clip_set(sobj, evas_object_clip_get(obj));
evas_object_smart_member_add(sobj, obj);
if (evas_object_data_get(o, "_elm_leaveme")) continue;
evas_object_hide(o);
}
- _if_focused_revert(obj, EINA_TRUE);
}
static void