summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_access.c
diff options
context:
space:
mode:
authorShinwoo Kim <kimcinoo.efl@gmail.com>2013-01-17 11:32:14 +0000
committerShinwoo Kim <kimcinoo.efl@gmail.com>2013-01-17 11:32:14 +0000
commitb7e997b9fba0c8f4c62e72ff25bc3dc32910941b (patch)
tree43699d089ec97c0f402e65322e8f429312a1ab45 /legacy/elementary/src/lib/elm_access.c
parent7f91ad418371b9ac1488fd2551ea21b137dcbcee (diff)
[access] evas_call_smarts_calculate(); makes evas_event_feed_mouse_move();
so new object would be highlighted if there is new object under the previous mouse(cursor) position. to fix this issue, elm_access is using the mouse_event_enable flag. but it would cause a problem as following case: 1. create input window in access module, 2. read something, 3. disable access module this would be resolved by export api to set mouse_event_enable flag the other day. SVN revision: 82933
Diffstat (limited to 'legacy/elementary/src/lib/elm_access.c')
-rw-r--r--legacy/elementary/src/lib/elm_access.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/elm_access.c b/legacy/elementary/src/lib/elm_access.c
index 736e6bb..87e221b 100644
--- a/legacy/elementary/src/lib/elm_access.c
+++ b/legacy/elementary/src/lib/elm_access.c
@@ -5,6 +5,8 @@
5 5
6#define MY_CLASS_NAME "elm_access" 6#define MY_CLASS_NAME "elm_access"
7 7
8static Eina_Bool mouse_event_enable = EINA_TRUE;
9
8static Evas_Object * _elm_access_add(Evas_Object *parent); 10static Evas_Object * _elm_access_add(Evas_Object *parent);
9 11
10static void 12static void
@@ -126,7 +128,10 @@ _access_obj_over_timeout_cb(void *data)
126static void 128static void
127_access_obj_mouse_in_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 129_access_obj_mouse_in_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
128{ 130{
129 Elm_Access_Info *ac = evas_object_data_get(data, "_elm_access"); 131 Elm_Access_Info *ac;
132 if (!mouse_event_enable) return;
133
134 ac = evas_object_data_get(data, "_elm_access");
130 if (!ac) return; 135 if (!ac) return;
131 136
132 if (ac->delay_timer) 137 if (ac->delay_timer)
@@ -141,8 +146,12 @@ _access_obj_mouse_in_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSE
141static void 146static void
142_access_obj_mouse_out_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 147_access_obj_mouse_out_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
143{ 148{
144 Elm_Access_Info *ac = evas_object_data_get(data, "_elm_access"); 149 Elm_Access_Info *ac;
150 if (!mouse_event_enable) return;
151
152 ac = evas_object_data_get(data, "_elm_access");
145 if (!ac) return; 153 if (!ac) return;
154
146 _elm_access_object_unhilight(data); 155 _elm_access_object_unhilight(data);
147 if (ac->delay_timer) 156 if (ac->delay_timer)
148 { 157 {
@@ -240,6 +249,13 @@ _access_highlight_object_get(Evas_Object *obj)
240 return ho; 249 return ho;
241} 250}
242 251
252void _elm_access_mouse_event_enabled_set(Eina_Bool enabled)
253{
254 enabled = !!enabled;
255 if (mouse_event_enable == enabled) return;
256 mouse_event_enable = enabled;
257}
258
243//-------------------------------------------------------------------------// 259//-------------------------------------------------------------------------//
244EAPI void 260EAPI void
245_elm_access_highlight_set(Evas_Object* obj) 261_elm_access_highlight_set(Evas_Object* obj)