From b073f59684a41d32d54024e6336e7703b34ad6b4 Mon Sep 17 00:00:00 2001 From: Jonathan Atton Date: Sat, 17 Jul 2010 08:54:51 +0000 Subject: [PATCH] elm_hover/hoversel: set a default parent in the constructor. With the edje external type we can not set a parent currently but with this patch we can use theses widgets in specifics conditions (the parent will be the edje group) SVN revision: 50303 --- src/lib/elc_hoversel.c | 1 + src/lib/elm_hover.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c index ddcb156..4659721 100644 --- a/src/lib/elc_hoversel.c +++ b/src/lib/elc_hoversel.c @@ -260,6 +260,7 @@ elm_hoversel_add(Evas_Object *parent) evas_object_event_callback_add(wd->btn, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _changed_size_hints, obj); evas_object_smart_callback_add(wd->btn, "clicked", _button_clicked, obj); + elm_hoversel_hover_parent_set(obj, parent); _sizing_eval(obj); return obj; } diff --git a/src/lib/elm_hover.c b/src/lib/elm_hover.c index fe15ab3..8b555c9 100644 --- a/src/lib/elm_hover.c +++ b/src/lib/elm_hover.c @@ -308,6 +308,8 @@ elm_hover_add(Evas_Object *parent) evas_object_smart_callback_add(obj, "sub-object-del", _sub_del, obj); + elm_hover_parent_set(obj, parent); + _sizing_eval(obj); return obj; } -- 2.7.4