raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=036cec14548828d28b9f3668ceb08b299ab97e01

commit 036cec14548828d28b9f3668ceb08b299ab97e01
Author: Jaehyun Cho <[email protected]>
Date:   Wed Mar 5 14:34:21 2014 +0900

    naviframe: Emit visible signal to edc theme when first item is pushed
    
    Summary:
    Emit "elm,state,visible" "elm" signal to edc file when first item is pushed.
    Above signal can be used if an application wants to do something when the 
first view is shown on the screen.
    
    @fix
    
    Reviewers: Hermet, seoz, raster
    
    CC: seoz, raster
    
    Differential Revision: https://phab.enlightenment.org/D483
---
 src/lib/elc_naviframe.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index a9a453e..5218932 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -1553,6 +1553,9 @@ _item_push(Eo *obj, void *_pd, va_list *list)
 
    sd->stack = eina_inlist_append(sd->stack, EINA_INLIST_GET(it));
 
+   if (!prev_it)
+     elm_object_signal_emit(VIEW(it), "elm,state,visible", "elm");
+
    elm_layout_sizing_eval(obj);
 
    *ret = (Elm_Object_Item *)it;

-- 


Reply via email to