aaah naviframe theme hook bug.. was a different thing. always enabled

title when setting style! booooo! dont do that!



SVN revision: 68465
This commit is contained in:
Carsten Haitzler 2012-02-27 05:37:57 +00:00
parent e6c023682e
commit 87a581fc1d
1 changed files with 8 additions and 4 deletions

View File

@ -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)