aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-05-22 12:13:49 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-05-22 12:13:49 +0000
commitb29d458517fe3f3f5a63dc95acb72440ed183946 (patch)
treebd468b217f96ab1942b2f3fc88e98a75ced5bedf /legacy/elementary/src/lib/elm_win.c
parentThe parent of elm_menu_add shouldn't be a edje object. (diff)
downloadefl-b29d458517fe3f3f5a63dc95acb72440ed183946.tar.gz
barebones initial support for access commands. XXX's
SVN revision: 71324
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c48
1 files changed, 42 insertions, 6 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 69560ef727..9daef5ff07 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1559,7 +1559,7 @@ _elm_win_client_message(void *data,
if (e->format != 32) return ECORE_CALLBACK_PASS_ON;
if (e->message_type == ECORE_X_ATOM_E_COMP_FLUSH)
{
- if ((unsigned)e->data.l[0] == sd->xwin)
+ if ((unsigned int)e->data.l[0] == sd->xwin)
{
Evas *evas = evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj);
if (evas)
@@ -1573,7 +1573,7 @@ _elm_win_client_message(void *data,
}
else if (e->message_type == ECORE_X_ATOM_E_COMP_DUMP)
{
- if ((unsigned)e->data.l[0] == sd->xwin)
+ if ((unsigned int)e->data.l[0] == sd->xwin)
{
Evas *evas = evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj);
if (evas)
@@ -1586,6 +1586,42 @@ _elm_win_client_message(void *data,
}
}
}
+ else if (e->message_type == ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL)
+ {
+ if ((unsigned int)e->data.l[0] == sd->xwin)
+ {
+ if ((unsigned int)e->data.l[1] ==
+ ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_NEXT)
+ {
+ // XXX: call right access func
+ }
+ else if ((unsigned int)e->data.l[1] ==
+ ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_PREV)
+ {
+ // XXX: call right access func
+ }
+ else if ((unsigned int)e->data.l[1] ==
+ ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_ACTIVATE)
+ {
+ // XXX: call right access func
+ }
+ else if ((unsigned int)e->data.l[1] ==
+ ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ)
+ {
+ // XXX: call right access func
+ }
+ else if ((unsigned int)e->data.l[1] ==
+ ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_NEXT)
+ {
+ // XXX: call right access func
+ }
+ else if ((unsigned int)e->data.l[1] ==
+ ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_PREV)
+ {
+ // XXX: call right access func
+ }
+ }
+ }
return ECORE_CALLBACK_PASS_ON;
}
@@ -2077,16 +2113,16 @@ elm_win_add(Evas_Object *parent,
#ifdef HAVE_ELEMENTARY_X
else if (ENGINE_COMPARE(ELM_SOFTWARE_X11))
sd->client_message_handler = ecore_event_handler_add
- (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
+ (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
else if (ENGINE_COMPARE(ELM_SOFTWARE_16_X11))
sd->client_message_handler = ecore_event_handler_add
- (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
+ (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
else if (ENGINE_COMPARE(ELM_SOFTWARE_8_X11))
sd->client_message_handler = ecore_event_handler_add
- (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
+ (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
else if (ENGINE_COMPARE(ELM_OPENGL_X11))
sd->client_message_handler = ecore_event_handler_add
- (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
+ (ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
#endif
else if (!strncmp(_elm_preferred_engine, "shot:", 5))