From: raster Date: Mon, 27 Feb 2012 05:37:57 +0000 (+0000) Subject: aaah naviframe theme hook bug.. was a different thing. always enabled X-Git-Tag: REL_F_I9500_20120323_1~17^2~515 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06581a3353425f5d3e7a81c35dd7f07ce44ae3b5;p=framework%2Fuifw%2Felementary.git aaah naviframe theme hook bug.. was a different thing. always enabled title when setting style! booooo! dont do that! git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68465 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 8f17afa..f25e049 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -214,10 +214,12 @@ _theme_hook(Evas_Object *obj) "base", elm_widget_style_get(obj)); + printf("=======\n"); EINA_INLIST_FOREACH(wd->stack, it) - _item_style_set(it, it->style); - if (it) - _item_title_visible_update(it); + { + _item_style_set(it, it->style); + _item_title_visible_update(it); + } } static void _emit_hook(Evas_Object *obj, @@ -379,6 +381,7 @@ _item_signal_emit_hook(Elm_Object_Item *it, static void _item_title_visible_update(Elm_Naviframe_Item *navi_it) { + printf("%p: vis: %i\n", navi_it, navi_it->title_visible); if (navi_it->title_visible) elm_object_signal_emit(VIEW(navi_it), "elm,state,title,show", "elm"); else @@ -988,7 +991,8 @@ _item_style_set(Elm_Naviframe_Item *navi_it, const char *item_style) if (navi_it->title_next_btn) elm_object_signal_emit(VIEW(navi_it), "elm,state,next_btn,show", "elm"); - navi_it->title_visible = EINA_TRUE; +// why does this forcibly enable title? isnt that separate to style? +// navi_it->title_visible = EINA_TRUE; _sizing_eval(WIDGET(navi_it)); if (wd->freeze_events)