elementary/naviframe - optimize code

SVN revision: 79893
This commit is contained in:
ChunEon Park 2012-11-30 13:27:56 +00:00
parent cd5eac4cc9
commit 4029295408
1 changed files with 6 additions and 16 deletions

View File

@ -172,16 +172,11 @@ _item_content_signals_emit(Elm_Naviframe_Item *it)
EINA_INLIST_FOREACH(it->content_list, content_pair)
{
if (edje_object_part_swallow_get(VIEW(it), content_pair->part))
{
snprintf(buf, sizeof(buf), "elm,state,%s,show", content_pair->part);
edje_object_signal_emit(VIEW(it), buf, "elm");
}
else
{
snprintf(buf, sizeof(buf), "elm,state,%s,hide", content_pair->part);
edje_object_signal_emit(VIEW(it), buf, "elm");
}
}
}
static void
@ -203,16 +198,11 @@ _item_text_signals_emit(Elm_Naviframe_Item *it)
EINA_INLIST_FOREACH(it->text_list, text_pair)
{
if (edje_object_part_text_get(VIEW(it), text_pair->part))
{
snprintf(buf, sizeof(buf), "elm,state,%s,show", text_pair->part);
edje_object_signal_emit(VIEW(it), buf, "elm");
}
else
{
snprintf(buf, sizeof(buf), "elm,state,%s,hide", text_pair->part);
edje_object_signal_emit(VIEW(it), buf, "elm");
}
}
}
static Evas_Object *