From d998575849d4549c89c2aa3a8c6667dbdc46447c Mon Sep 17 00:00:00 2001 From: hermet Date: Tue, 4 Oct 2011 06:43:37 +0000 Subject: [PATCH] elementary/naviframe - should be hidden case when label is NULL git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63792 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elc_naviframe.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 66f0fe4..7bafdbc 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -213,12 +213,16 @@ _item_text_set_hook(Elm_Object_Item *it, eina_stringshare_replace(&pair->text, label); edje_object_part_text_set(navi_it->base.view, buf, label); - snprintf(buf, sizeof(buf), "elm,state,%s,show", buf); - if (label) - edje_object_signal_emit(navi_it->base.view, buf, "elm"); + { + snprintf(buf, sizeof(buf), "elm,state,%s,show", buf); + edje_object_signal_emit(navi_it->base.view, buf, "elm"); + } else - edje_object_signal_emit(navi_it->base.view, buf, "elm"); + { + snprintf(buf, sizeof(buf), "elm,state,%s,hide", buf); + edje_object_signal_emit(navi_it->base.view, buf, "elm"); + } _item_sizing_eval(navi_it); } -- 2.7.4