summaryrefslogtreecommitdiff
path: root/src/lib/elm_toolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_toolbar.c')
-rw-r--r--src/lib/elm_toolbar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 047dce33a..fdaa4e07f 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -26,6 +26,8 @@ static const char SIG_SCROLL_ANIM_STOP[] = "scroll,anim,stop";
26static const char SIG_SCROLL_DRAG_START[] = "scroll,drag,start"; 26static const char SIG_SCROLL_DRAG_START[] = "scroll,drag,start";
27static const char SIG_SCROLL_DRAG_STOP[] = "scroll,drag,stop"; 27static const char SIG_SCROLL_DRAG_STOP[] = "scroll,drag,stop";
28static const char SIG_CLICKED[] = "clicked"; 28static const char SIG_CLICKED[] = "clicked";
29static const char SIG_SELECTED[] = "selected";
30static const char SIG_UNSELECTED[] = "unselected";
29static const char SIG_LONGPRESSED[] = "longpressed"; 31static const char SIG_LONGPRESSED[] = "longpressed";
30static const char SIG_CLICKED_DOUBLE[] = "clicked,double"; 32static const char SIG_CLICKED_DOUBLE[] = "clicked,double";
31static const char SIG_ITEM_FOCUSED[] = "item,focused"; 33static const char SIG_ITEM_FOCUSED[] = "item,focused";
@@ -37,6 +39,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
37 {SIG_SCROLL_DRAG_START, ""}, 39 {SIG_SCROLL_DRAG_START, ""},
38 {SIG_SCROLL_DRAG_STOP, ""}, 40 {SIG_SCROLL_DRAG_STOP, ""},
39 {SIG_CLICKED, ""}, 41 {SIG_CLICKED, ""},
42 {SIG_SELECTED, ""},
43 {SIG_UNSELECTED, ""},
40 {SIG_LONGPRESSED, ""}, 44 {SIG_LONGPRESSED, ""},
41 {SIG_CLICKED_DOUBLE, ""}, 45 {SIG_CLICKED_DOUBLE, ""},
42 {SIG_ITEM_FOCUSED, ""}, 46 {SIG_ITEM_FOCUSED, ""},
@@ -153,6 +157,7 @@ _item_unselect(Elm_Toolbar_Item *item)
153 edje_object_signal_emit(VIEW(item), "elm,state,unselected", "elm"); 157 edje_object_signal_emit(VIEW(item), "elm,state,unselected", "elm");
154 if (item->icon) 158 if (item->icon)
155 elm_widget_signal_emit(item->icon, "elm,state,unselected", "elm"); 159 elm_widget_signal_emit(item->icon, "elm,state,unselected", "elm");
160 evas_object_smart_callback_call(WIDGET(item), SIG_UNSELECTED, item);
156} 161}
157 162
158static void 163static void
@@ -1100,6 +1105,7 @@ _item_select(Elm_Toolbar_Item *it)
1100 if (it->func) it->func((void *)(it->base.data), WIDGET(it), it); 1105 if (it->func) it->func((void *)(it->base.data), WIDGET(it), it);
1101 } 1106 }
1102 evas_object_smart_callback_call(obj, SIG_CLICKED, it); 1107 evas_object_smart_callback_call(obj, SIG_CLICKED, it);
1108 evas_object_smart_callback_call(obj, SIG_SELECTED, it);
1103} 1109}
1104 1110
1105static void 1111static void