naviframe: Emit visible signal to edc theme when first item is pushed
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 5 Mar 2014 05:34:21 +0000 (14:34 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 5 Mar 2014 05:34:49 +0000 (14:34 +0900)
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

index a9a453e..5218932 100644 (file)
@@ -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;