elementary/naviframe - [E-devel][Patch] Fix _item_text_set_hook to set part text correctly

Dear all,

Hello. This is Jaehyun Cho.
The current version of _item_text_set_hook sends the part signal name to edje_object_part_text_set. (elementary/src/lib/elc_naviframe.c)
To resolve this issue, I sent different arguments to edje_object_part_text_set for each case.
Please review this patch.

Thank you,
Jaehyun Cho.

Signed-Off-By: JaeHyun Cho <jae_hyun_cho@naver.com>



SVN revision: 82030
This commit is contained in:
JaeHyun Cho 2013-01-03 04:10:45 +00:00 committed by ChunEon Park
parent 3484f83bf8
commit 6282ede9d3
3 changed files with 8 additions and 2 deletions

View File

@ -866,3 +866,7 @@
2012-12-29 Mike Blumenkrantz
* Tooltips now correctly set NETWM tooltip window type
2013-01-03 JaeHyun Jo (jae_hyun@cho@naver.com)
* Fix the naviframe item part text to be set properly.

View File

@ -107,6 +107,7 @@ Fixes:
* Fix photocam returns file set error correctly.
* Fix bug where genlist would delete items added during selection callback if a clear was queued
* Tooltips now correctly set NETWM tooltip window type
* Fix the naviframe item part text to be set properly.
Removals:

View File

@ -375,6 +375,7 @@ _item_text_set_hook(Elm_Object_Item *it,
edje_object_signal_emit(VIEW(it), "elm,state,title_label,show", "elm");
else
edje_object_signal_emit(VIEW(it), "elm,state,title_label,hide", "elm");
edje_object_part_text_set(VIEW(it), buf, label);
}
else if (!strcmp("subtitle", part))
{
@ -384,6 +385,7 @@ _item_text_set_hook(Elm_Object_Item *it,
edje_object_signal_emit(VIEW(it), "elm,state,subtitle,show", "elm");
else
edje_object_signal_emit(VIEW(it), "elm,state,subtitle,hide", "elm");
edje_object_part_text_set(VIEW(it), buf, label);
}
else
{
@ -409,10 +411,9 @@ _item_text_set_hook(Elm_Object_Item *it,
snprintf(buf, sizeof(buf), "elm,state,%s,hide", part);
edje_object_signal_emit(VIEW(it), buf, "elm");
}
edje_object_part_text_set(VIEW(it), part, label);
}
edje_object_part_text_set(VIEW(nit), buf, label);
/* access */
if (_elm_config->access_mode)
_access_obj_process(nit, EINA_TRUE);