elementary/naviframe - bottom_item_get returned NULL always.. fixed it
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 7 Oct 2011 10:33:14 +0000 (10:33 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 7 Oct 2011 10:33:14 +0000 (10:33 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63913 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

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