From: ChunEon Park Date: Tue, 8 Nov 2011 02:27:06 +0000 (+0000) Subject: elementary/naviframe - trivial changes X-Git-Tag: v1.0.0~1636 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4217d6a2d70285f600120367b2f401ec1f28954;p=platform%2Fupstream%2Felementary.git elementary/naviframe - trivial changes SVN revision: 64927 --- diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 8ec3c97..0bfe6c4 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -1022,19 +1022,21 @@ elm_naviframe_item_insert_before(Elm_Object_Item *before, const char *item_style) { ELM_OBJ_ITEM_CHECK_OR_RETURN(before, NULL); + Elm_Naviframe_Item *before_it; Elm_Naviframe_Item *it; Widget_Data *wd; - wd = elm_widget_data_get(WIDGET(before)); + before_it = (Elm_Naviframe_Item *) before; + wd = elm_widget_data_get(WIDGET(before_it)); if (!wd) return NULL; - it = _item_new(WIDGET(before), title_label, prev_btn, next_btn, content, + it = _item_new(WIDGET(before_it), title_label, prev_btn, next_btn, content, item_style); if (!it) return NULL; wd->stack = eina_inlist_prepend_relative(wd->stack, EINA_INLIST_GET(it), - EINA_INLIST_GET(((Elm_Naviframe_Item *) before))); + EINA_INLIST_GET(before_it)); return (Elm_Object_Item *) it; } @@ -1048,23 +1050,25 @@ elm_naviframe_item_insert_after(Elm_Object_Item *after, { ELM_OBJ_ITEM_CHECK_OR_RETURN(after, NULL); Elm_Naviframe_Item *it; + Elm_Naviframe_Item *after_it; Widget_Data *wd; - wd = elm_widget_data_get(WIDGET(after)); + after_it = (Elm_Naviframe_Item *) after; + wd = elm_widget_data_get(WIDGET(after_it)); if (!wd) return NULL; - it = _item_new(WIDGET(after), title_label, prev_btn, next_btn, content, + it = _item_new(WIDGET(after_it), title_label, prev_btn, next_btn, content, item_style); if (!it) return NULL; - if (elm_naviframe_top_item_get(WIDGET(after)) == after) + if (elm_naviframe_top_item_get(WIDGET(after_it)) == after) { - evas_object_hide(VIEW(after)); + evas_object_hide(VIEW(after_it)); evas_object_show(VIEW(it)); } wd->stack = eina_inlist_append_relative(wd->stack, EINA_INLIST_GET(it), - EINA_INLIST_GET(((Elm_Naviframe_Item *) after))); + EINA_INLIST_GET(after_it)); return (Elm_Object_Item *) it; }