forked from enlightenment/efl
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:
parent
3484f83bf8
commit
6282ede9d3
|
@ -866,3 +866,7 @@
|
||||||
2012-12-29 Mike Blumenkrantz
|
2012-12-29 Mike Blumenkrantz
|
||||||
|
|
||||||
* Tooltips now correctly set NETWM tooltip window type
|
* 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.
|
||||||
|
|
|
@ -107,6 +107,7 @@ Fixes:
|
||||||
* Fix photocam returns file set error correctly.
|
* Fix photocam returns file set error correctly.
|
||||||
* Fix bug where genlist would delete items added during selection callback if a clear was queued
|
* Fix bug where genlist would delete items added during selection callback if a clear was queued
|
||||||
* Tooltips now correctly set NETWM tooltip window type
|
* Tooltips now correctly set NETWM tooltip window type
|
||||||
|
* Fix the naviframe item part text to be set properly.
|
||||||
|
|
||||||
Removals:
|
Removals:
|
||||||
|
|
||||||
|
|
|
@ -375,6 +375,7 @@ _item_text_set_hook(Elm_Object_Item *it,
|
||||||
edje_object_signal_emit(VIEW(it), "elm,state,title_label,show", "elm");
|
edje_object_signal_emit(VIEW(it), "elm,state,title_label,show", "elm");
|
||||||
else
|
else
|
||||||
edje_object_signal_emit(VIEW(it), "elm,state,title_label,hide", "elm");
|
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))
|
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");
|
edje_object_signal_emit(VIEW(it), "elm,state,subtitle,show", "elm");
|
||||||
else
|
else
|
||||||
edje_object_signal_emit(VIEW(it), "elm,state,subtitle,hide", "elm");
|
edje_object_signal_emit(VIEW(it), "elm,state,subtitle,hide", "elm");
|
||||||
|
edje_object_part_text_set(VIEW(it), buf, label);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -409,10 +411,9 @@ _item_text_set_hook(Elm_Object_Item *it,
|
||||||
snprintf(buf, sizeof(buf), "elm,state,%s,hide", part);
|
snprintf(buf, sizeof(buf), "elm,state,%s,hide", part);
|
||||||
edje_object_signal_emit(VIEW(it), buf, "elm");
|
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 */
|
/* access */
|
||||||
if (_elm_config->access_mode)
|
if (_elm_config->access_mode)
|
||||||
_access_obj_process(nit, EINA_TRUE);
|
_access_obj_process(nit, EINA_TRUE);
|
||||||
|
|
Loading…
Reference in New Issue