projects
/
profile
/
mobile
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd4765e
)
[toolbar]if toolbar have only one item, emit two signals first item and last item
author
Hosang Kim
<hosang12.kim@samsung.com>
Thu, 13 Jun 2013 08:41:29 +0000
(17:41 +0900)
committer
Sungho Kwak
<sungho1.kwak@samsung.com>
Thu, 20 Jun 2013 12:31:14 +0000
(21:31 +0900)
src/lib/elm_toolbar.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_toolbar.c
b/src/lib/elm_toolbar.c
index
137e178
..
7ee2a16
100644
(file)
--- a/
src/lib/elm_toolbar.c
+++ b/
src/lib/elm_toolbar.c
@@
-543,7
+543,11
@@
_resize_job(void *data)
EINA_LIST_FOREACH(list, l, o)
{
if (o == eina_list_nth(list, 0))
- edje_object_signal_emit(o, "elm,order,first,item", "elm");
+ {
+ edje_object_signal_emit(o, "elm,order,first,item", "elm");
+ if (eina_list_count == 1)
+ edje_object_signal_emit(o, "elm,order,last,item", "elm");
+ }
else if (o == eina_list_nth(list, eina_list_count(list)-1))
edje_object_signal_emit(o, "elm,order,last,item", "elm");
else