seoz pushed a commit to branch master.
commit c89da14898f6d768293f14f32c3c39327ffbec04
Author: Daniel Juyung Seo <[email protected]>
Date: Wed Apr 3 14:46:14 2013 +0900
elc_hoversel.c: Do not add hover as a hoversel's smart member. Handle
show/hide manually.
Hover is a *HOVER* object so do not add hover to another object's smart
member.
It will restrict the layer of hover object.
Manually handle show/hide instead.
---
src/lib/elc_hoversel.c | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index 65c6045..5f80554 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -95,7 +95,6 @@ _activate(Evas_Object *obj)
if (elm_widget_disabled_get(obj)) return;
sd->hover = elm_hover_add(sd->hover_parent);
- evas_object_smart_member_add(sd->hover, obj);
elm_widget_sub_object_add(obj, sd->hover);
elm_widget_mirrored_automatic_set(sd->hover, EINA_FALSE);
@@ -235,6 +234,22 @@ _elm_hoversel_smart_del(Eo *obj, void *_pd, va_list *list
EINA_UNUSED)
}
static void
+_elm_hoversel_smart_show(Eo *obj, void *_pd EINA_UNUSED, va_list *list
EINA_UNUSED)
+{
+ Elm_Hoversel_Smart_Data *sd = _pd;
+ eo_do_super(obj, MY_CLASS, evas_obj_smart_show());
+ evas_object_show(sd->hover);
+}
+
+static void
+_elm_hoversel_smart_hide(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
+{
+ Elm_Hoversel_Smart_Data *sd = _pd;
+ eo_do_super(obj, MY_CLASS, evas_obj_smart_hide());
+ //evas_object_hide(sd->hover);
+}
+
+static void
_elm_hoversel_smart_parent_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *parent = va_arg(*list, Evas_Object *);
@@ -525,6 +540,8 @@ _class_constructor(Eo_Class *klass)
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD),
_elm_hoversel_smart_add),
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL),
_elm_hoversel_smart_del),
+ EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_SHOW),
_elm_hoversel_smart_show),
+ EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_HIDE),
_elm_hoversel_smart_hide),
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME),
_elm_hoversel_smart_theme),
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENT_SET),
_elm_hoversel_smart_parent_set),
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html