forked from enlightenment/efl
elm_notify: recalc everything if the size hint change
SVN revision: 49820
This commit is contained in:
parent
cf917f18e4
commit
02abff6519
|
@ -1473,7 +1473,6 @@ extern "C" {
|
||||||
* TODO
|
* TODO
|
||||||
*
|
*
|
||||||
* Update the minimun height of the bar in the theme. No minimun should be set in the vertical theme
|
* 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 ...)
|
* Add events (move, start ...)
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_panes_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_panes_add(Evas_Object *parent);
|
||||||
|
|
|
@ -92,7 +92,7 @@ _sizing_eval(Evas_Object *obj)
|
||||||
static void
|
static void
|
||||||
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
{
|
{
|
||||||
_sizing_eval(data);
|
_calc(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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);
|
Widget_Data *wd = elm_widget_data_get(obj);
|
||||||
Evas_Object *sub = event_info;
|
Evas_Object *sub = event_info;
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
|
|
||||||
if (sub == wd->content)
|
if (sub == wd->content)
|
||||||
{
|
{
|
||||||
evas_object_event_callback_del_full(sub, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
|
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 == content) return;
|
||||||
if (wd->content) evas_object_del(wd->content);
|
if (wd->content) evas_object_del(wd->content);
|
||||||
wd->content = content;
|
wd->content = content;
|
||||||
|
|
||||||
if (content)
|
if (content)
|
||||||
{
|
{
|
||||||
elm_widget_sub_object_add(obj, content);
|
elm_widget_sub_object_add(obj, content);
|
||||||
|
|
Loading…
Reference in New Issue