elc_naviframe: Fix warning caused by elm_obj_layout_signal_emit override function...
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 31 Jul 2014 13:06:20 +0000 (22:06 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 31 Jul 2014 13:06:27 +0000 (22:06 +0900)
Summary: Fix the elm_obj_layout_signal_emit override function in naviframe to prevent warning

Reviewers: seoz, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1253

@fix

src/lib/elc_naviframe.c

index 1c6d7b8..feb09e7 100644 (file)
@@ -985,9 +985,12 @@ _back_btn_new(Evas_Object *obj, const char *title_label)
 EOLIAN static void
 _elm_naviframe_elm_layout_signal_emit(Eo *obj, Elm_Naviframe_Data *sd, const char *emission, const char *source)
 {
-   if (!sd->stack) return;
+   Elm_Naviframe_Item *top_it;
+
+   top_it = (Elm_Naviframe_Item *)elm_naviframe_top_item_get(obj);
+   if (!top_it) return;
 
-   eo_do_super(obj, MY_CLASS, elm_obj_layout_signal_emit(emission, source));
+   eo_do(VIEW(top_it), elm_obj_layout_signal_emit(emission, source));
 }
 
 /* content/text smart functions proxying things to the top item, which