antognolli pushed a commit to branch master.
commit f9fbafae5846e7e45dce53345d47421b8008a703
Author: Rafael Antognolli <[email protected]>
Date: Fri Mar 22 15:01:02 2013 -0300
ecore_evas/wayland: Don't need to show and hide children of the frame.
The frame smart object inherits from clipped smart object now, so it
doesn't need to show and hide its children, as the clipper takes care of
that.
---
.../engines/wayland/ecore_evas_wayland_common.c | 32 ++--------------------
1 file changed, 2 insertions(+), 30 deletions(-)
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 7c2b4c6..347a1d5 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -479,6 +479,7 @@ _ecore_evas_wl_common_smart_add(Evas_Object *obj)
sd->frame = evas_object_rectangle_add(evas);
evas_object_color_set(sd->frame, 249, 249, 249, 255);
+ evas_object_show(sd->frame);
evas_object_smart_member_add(sd->frame, obj);
sd->text = evas_object_text_add(evas);
@@ -486,6 +487,7 @@ _ecore_evas_wl_common_smart_add(Evas_Object *obj)
evas_object_text_style_set(sd->text, EVAS_TEXT_STYLE_PLAIN);
evas_object_text_font_set(sd->text, "Sans", 10);
evas_object_text_text_set(sd->text, "Smart Test");
+ evas_object_show(sd->text);
evas_object_smart_member_add(sd->text, obj);
}
@@ -517,40 +519,10 @@ _ecore_evas_wl_common_smart_resize(Evas_Object *obj,
Evas_Coord w, Evas_Coord h)
}
static void
-_ecore_evas_wl_common_smart_show(Evas_Object *obj)
-{
- EE_Wl_Smart_Data *sd;
-
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
- if (!(sd = evas_object_smart_data_get(obj))) return;
- evas_object_show(sd->frame);
- evas_object_show(sd->text);
-
- _ecore_evas_wl_frame_parent_sc->show(obj);
-}
-
-static void
-_ecore_evas_wl_common_smart_hide(Evas_Object *obj)
-{
- EE_Wl_Smart_Data *sd;
-
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
- if (!(sd = evas_object_smart_data_get(obj))) return;
- evas_object_hide(sd->text);
- evas_object_hide(sd->frame);
-
- _ecore_evas_wl_frame_parent_sc->hide(obj);
-}
-
-static void
_ecore_evas_wl_frame_smart_set_user(Evas_Smart_Class *sc)
{
sc->add = _ecore_evas_wl_common_smart_add;
sc->del = _ecore_evas_wl_common_smart_del;
- sc->show = _ecore_evas_wl_common_smart_show;
- sc->hide = _ecore_evas_wl_common_smart_hide;
sc->resize = _ecore_evas_wl_common_smart_resize;
}
--
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar