elementary/naviframe - bottom_item_get returned NULL always.. fixed it
authorChunEon Park <hermet@hermet.pe.kr>
Fri, 7 Oct 2011 10:33:14 +0000 (10:33 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 7 Oct 2011 10:33:14 +0000 (10:33 +0000)
SVN revision: 63913

src/lib/elc_naviframe.c

index 37fa8fe..a01fbbc 100644 (file)
@@ -966,8 +966,8 @@ elm_naviframe_bottom_item_get(const Evas_Object *obj)
 {
    ELM_CHECK_WIDTYPE(obj, widtype) NULL;
    Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return NULL;
-   return NULL;
+   if ((!wd) || (!wd->stack)) return NULL;
+   return wd->stack->data;
 }
 
 EAPI void