aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-11-05 10:52:28 +0100
committerLukasz Stanislawski <l.stanislaws@samsung.com>2015-11-05 10:56:44 +0100
commit4034204416a558f1d59d611f747c25c914b7efdd (patch)
treed7e07751b4440d4ae16913f3d3ef349b9c3f3fe1
parentelm_segment_control: fix invalid parameter (diff)
downloadelementary-4034204416a558f1d59d611f747c25c914b7efdd.tar.gz
atspi: add missing SELECTED changed signals
@fix
-rw-r--r--src/lib/elm_gengrid.c4
-rw-r--r--src/lib/elm_genlist.c4
-rw-r--r--src/lib/elm_list.c4
-rw-r--r--src/lib/elm_toolbar.c4
4 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 01c72ccef..ce189120a 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -536,6 +536,8 @@ _item_unselect(Elm_Gen_Item *it)
sd->selected = eina_list_remove(sd->selected, eo_it);
eo_do(WIDGET(it), eo_event_callback_call
(EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, eo_it));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
}
}
@@ -4127,6 +4129,8 @@ _item_select(Elm_Gen_Item *it)
if (it->generation == sd->generation)
{
eo_do(WIDGET(it), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
elm_object_item_focus_set(eo_it, EINA_TRUE);
}
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 2e4bd8bf7..a706bd947 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3713,6 +3713,8 @@ _item_unselect(Elm_Gen_Item *it)
sd->selected = eina_list_remove(sd->selected, EO_OBJ(it));
eo_do(WIDGET(it), eo_event_callback_call
(EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(it)));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
}
static void
@@ -5785,6 +5787,8 @@ _item_select(Elm_Gen_Item *it)
// delete item if it's requested deletion in the above callbacks.
if ((it->base)->on_deletion) goto item_deleted;
eo_do(WIDGET(it), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
// delete item if it's requested deletion in the above callbacks.
if ((it->base)->on_deletion) goto item_deleted;
it->walking--;
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 065caa4e4..00be140fb 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -1420,6 +1420,8 @@ call:
if (it->func) it->func((void *)WIDGET_ITEM_DATA_GET(eo_it), WIDGET(it), eo_it);
eo_do(obj, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
sd->last_selected_item = eo_it;
_elm_list_unwalk(obj, sd);
@@ -1488,6 +1490,8 @@ _item_unselect(Elm_List_Item_Data *it)
(sd->select_mode == ELM_OBJECT_SELECT_MODE_NONE)))
eo_do(WIDGET(it), eo_event_callback_call
(EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(it)));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
}
_elm_list_unwalk(obj, sd);
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index ef38744f2..5d46d1f24 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -160,6 +160,8 @@ _item_unselect(Elm_Toolbar_Item_Data *item)
if (item->icon)
elm_widget_signal_emit(item->icon, "elm,state,unselected", "elm");
eo_do(WIDGET(item), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(item)));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(item), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
}
static void
@@ -1168,6 +1170,8 @@ _item_select(Elm_Toolbar_Item_Data *it)
}
eo_do(obj, eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, EO_OBJ(it)));
eo_do(obj, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, EO_OBJ(it)));
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
}
static void