[elm] More safety for box deletion.

SVN revision: 75896
This commit is contained in:
Gustavo Lima Chaves 2012-08-30 16:46:20 +00:00
parent 7f8d2e218e
commit 8827185824
2 changed files with 7 additions and 1 deletions

View File

@ -120,6 +120,9 @@ _sizing_eval(Evas_Object *obj)
ELM_BOX_DATA_GET(obj, sd);
if (sd->on_deletion)
return;
evas_object_size_hint_min_get
(ELM_WIDGET_DATA(sd)->resize_obj, &minw, &minh);
evas_object_size_hint_max_get
@ -390,6 +393,8 @@ _elm_box_smart_del(Evas_Object *obj)
ELM_BOX_DATA_GET(obj, sd);
sd->on_deletion = EINA_TRUE;
evas_object_event_callback_del_full
(ELM_WIDGET_DATA(sd)->resize_obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_on_size_hints_changed, obj);

View File

@ -122,8 +122,9 @@ struct _Elm_Box_Smart_Data
* first member obligatory, as
* we're inheriting from it */
Eina_Bool horizontal : 1;
Eina_Bool homogeneous : 1;
Eina_Bool on_deletion : 1;
Eina_Bool horizontal : 1;
Eina_Bool recalc : 1;
};