From: Jonathan Atton Date: Wed, 23 Jun 2010 17:58:08 +0000 (+0000) Subject: elm_notify: recalc everything if the size hint change X-Git-Tag: v1.0.0~4515 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0a3c515c4e0e3947ce0aa2fd1f6a2deb9159f03;p=platform%2Fupstream%2Felementary.git elm_notify: recalc everything if the size hint change SVN revision: 49820 --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 46ba6f188..94ea598f8 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -1473,7 +1473,6 @@ extern "C" { * TODO * * Update the minimun height of the bar in the theme. No minimun should be set in the vertical theme - * Add horyzontal theme * Add events (move, start ...) */ EAPI Evas_Object *elm_panes_add(Evas_Object *parent); diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c index 3b9389555..cad106bff 100644 --- a/src/lib/elm_notify.c +++ b/src/lib/elm_notify.c @@ -92,7 +92,7 @@ _sizing_eval(Evas_Object *obj) static void _changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { - _sizing_eval(data); + _calc(data); } static void @@ -101,6 +101,7 @@ _sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info) Widget_Data *wd = elm_widget_data_get(obj); Evas_Object *sub = event_info; if (!wd) return; + if (sub == wd->content) { evas_object_event_callback_del_full(sub, EVAS_CALLBACK_CHANGED_SIZE_HINTS, @@ -306,6 +307,7 @@ elm_notify_content_set(Evas_Object *obj, Evas_Object *content) if (wd->content == content) return; if (wd->content) evas_object_del(wd->content); wd->content = content; + if (content) { elm_widget_sub_object_add(obj, content);