summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2014-09-30 10:58:18 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-09-30 10:59:43 +0900
commit496b4a39cbb630e6658dfa7f56edc880993dcf69 (patch)
treef2fc49a072782f25d4d040ba44b5656af6478684
parent5c3c137b80cbc47c32208fb651f22fa71f8634ed (diff)
elm_menu: Add item_signal_emit_hook for elm_menu
Summary: Add item_signal_emit_hook for elm_menu Reviewers: Hermet Reviewed By: Hermet Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D1500
-rw-r--r--src/lib/elm_menu.c12
-rw-r--r--src/lib/elm_menu.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/elm_menu.c b/src/lib/elm_menu.c
index d103393d7..95ce2bb66 100644
--- a/src/lib/elm_menu.c
+++ b/src/lib/elm_menu.c
@@ -91,6 +91,16 @@ _item_disable_hook(Elm_Object_Item *it)
91} 91}
92 92
93static void 93static void
94_item_signal_emit_hook(Elm_Object_Item *it,
95 const char *emission,
96 const char *source)
97{
98 Elm_Menu_Item *item = (Elm_Menu_Item *)it;
99
100 elm_layout_signal_emit(VIEW(item), emission, source);
101}
102
103static void
94_submenu_sizing_eval(Elm_Menu_Item *parent_it) 104_submenu_sizing_eval(Elm_Menu_Item *parent_it)
95{ 105{
96 Eina_List *l; 106 Eina_List *l;
@@ -974,6 +984,7 @@ _elm_menu_item_add(Eo *obj, Elm_Menu_Data *sd, Elm_Object_Item *parent, const ch
974 elm_widget_item_text_get_hook_set(it, _item_text_get_hook); 984 elm_widget_item_text_get_hook_set(it, _item_text_get_hook);
975 elm_widget_item_content_set_hook_set(it, _item_content_set_hook); 985 elm_widget_item_content_set_hook_set(it, _item_content_set_hook);
976 elm_widget_item_content_get_hook_set(it, _item_content_get_hook); 986 elm_widget_item_content_get_hook_set(it, _item_content_get_hook);
987 elm_widget_item_signal_emit_hook_set(it, _item_signal_emit_hook);
977 988
978 it->base.data = data; 989 it->base.data = data;
979 it->func = func; 990 it->func = func;
@@ -1059,6 +1070,7 @@ _elm_menu_item_separator_add(Eo *obj, Elm_Menu_Data *sd, Elm_Object_Item *parent
1059 elm_widget_item_text_get_hook_set(subitem, _item_text_get_hook); 1070 elm_widget_item_text_get_hook_set(subitem, _item_text_get_hook);
1060 elm_widget_item_content_set_hook_set(subitem, _item_content_set_hook); 1071 elm_widget_item_content_set_hook_set(subitem, _item_content_set_hook);
1061 elm_widget_item_content_get_hook_set(subitem, _item_content_get_hook); 1072 elm_widget_item_content_get_hook_set(subitem, _item_content_get_hook);
1073 elm_widget_item_signal_emit_hook_set(subitem, _item_signal_emit_hook);
1062 1074
1063 subitem->separator = EINA_TRUE; 1075 subitem->separator = EINA_TRUE;
1064 _item_separator_obj_create(subitem); 1076 _item_separator_obj_create(subitem);
diff --git a/src/lib/elm_menu.h b/src/lib/elm_menu.h
index ea0ead08d..9d3e2af02 100644
--- a/src/lib/elm_menu.h
+++ b/src/lib/elm_menu.h
@@ -32,6 +32,7 @@
32 * @li @ref elm_object_item_part_content_get 32 * @li @ref elm_object_item_part_content_get
33 * @li @ref elm_object_item_disabled_set 33 * @li @ref elm_object_item_disabled_set
34 * @li @ref elm_object_item_disabled_get 34 * @li @ref elm_object_item_disabled_get
35 * @li @ref elm_object_item_signal_emit (since 1.12)
35 * 36 *
36 * @see @ref tutorial_menu 37 * @see @ref tutorial_menu
37 * @{ 38 * @{