summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
authorTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-06-18 22:39:00 +0000
committerTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-06-18 22:39:00 +0000
commitfa956101a727a48f6976c76f86576c59df59c718 (patch)
treef22fd47f6ae6866b7ff1d4817264651d29aef245 /src/bin/e_widget_toolbar.c
parentff4217be1cfdf9a1bf457af0f0800fcd43b6d421 (diff)
Adding selection API to E_Icon
SVN revision: 49755
Diffstat (limited to 'src/bin/e_widget_toolbar.c')
-rw-r--r--src/bin/e_widget_toolbar.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/e_widget_toolbar.c b/src/bin/e_widget_toolbar.c
index 9fee6a5..d28e2ab 100644
--- a/src/bin/e_widget_toolbar.c
+++ b/src/bin/e_widget_toolbar.c
@@ -525,7 +525,10 @@ _item_select(Item *it)
525{ 525{
526 it->selected = EINA_TRUE; 526 it->selected = EINA_TRUE;
527 edje_object_signal_emit(it->o_base, "e,state,selected", "e"); 527 edje_object_signal_emit(it->o_base, "e,state,selected", "e");
528 edje_object_signal_emit(it->o_icon, "e,state,selected", "e"); 528 if (strcmp(evas_object_type_get(it->o_icon), "e_icon"))
529 edje_object_signal_emit(it->o_icon, "e,state,selected", "e");
530 else
531 e_icon_selected_set(it->o_icon, EINA_TRUE);
529 _item_show(it); 532 _item_show(it);
530 if (it->func) it->func((void *)it->data1, (void *)it->data2); 533 if (it->func) it->func((void *)it->data1, (void *)it->data2);
531} 534}
@@ -535,5 +538,8 @@ _item_unselect(Item *it)
535{ 538{
536 it->selected = EINA_FALSE; 539 it->selected = EINA_FALSE;
537 edje_object_signal_emit(it->o_base, "e,state,unselected", "e"); 540 edje_object_signal_emit(it->o_base, "e,state,unselected", "e");
538 edje_object_signal_emit(it->o_icon, "e,state,unselected", "e"); 541 if (strcmp(evas_object_type_get(it->o_icon), "e_icon"))
542 edje_object_signal_emit(it->o_icon, "e,state,unselected", "e");
543 else
544 e_icon_selected_set(it->o_icon, EINA_FALSE);
539} 545}