summaryrefslogtreecommitdiff
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
parent44cb457604bb324e448aeab24799498ea3b42d9f (diff)
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)
536 sd->selected = eina_list_remove(sd->selected, eo_it); 536 sd->selected = eina_list_remove(sd->selected, eo_it);
537 eo_do(WIDGET(it), eo_event_callback_call 537 eo_do(WIDGET(it), eo_event_callback_call
538 (EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, eo_it)); 538 (EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, eo_it));
539 if (_elm_config->atspi_mode)
540 elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
539 } 541 }
540} 542}
541 543
@@ -4127,6 +4129,8 @@ _item_select(Elm_Gen_Item *it)
4127 if (it->generation == sd->generation) 4129 if (it->generation == sd->generation)
4128 { 4130 {
4129 eo_do(WIDGET(it), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it)); 4131 eo_do(WIDGET(it), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
4132 if (_elm_config->atspi_mode)
4133 elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
4130 elm_object_item_focus_set(eo_it, EINA_TRUE); 4134 elm_object_item_focus_set(eo_it, EINA_TRUE);
4131 } 4135 }
4132 4136
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)
3713 sd->selected = eina_list_remove(sd->selected, EO_OBJ(it)); 3713 sd->selected = eina_list_remove(sd->selected, EO_OBJ(it));
3714 eo_do(WIDGET(it), eo_event_callback_call 3714 eo_do(WIDGET(it), eo_event_callback_call
3715 (EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(it))); 3715 (EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(it)));
3716 if (_elm_config->atspi_mode)
3717 elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
3716} 3718}
3717 3719
3718static void 3720static void
@@ -5785,6 +5787,8 @@ _item_select(Elm_Gen_Item *it)
5785 // delete item if it's requested deletion in the above callbacks. 5787 // delete item if it's requested deletion in the above callbacks.
5786 if ((it->base)->on_deletion) goto item_deleted; 5788 if ((it->base)->on_deletion) goto item_deleted;
5787 eo_do(WIDGET(it), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it)); 5789 eo_do(WIDGET(it), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
5790 if (_elm_config->atspi_mode)
5791 elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
5788 // delete item if it's requested deletion in the above callbacks. 5792 // delete item if it's requested deletion in the above callbacks.
5789 if ((it->base)->on_deletion) goto item_deleted; 5793 if ((it->base)->on_deletion) goto item_deleted;
5790 it->walking--; 5794 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:
1420 1420
1421 if (it->func) it->func((void *)WIDGET_ITEM_DATA_GET(eo_it), WIDGET(it), eo_it); 1421 if (it->func) it->func((void *)WIDGET_ITEM_DATA_GET(eo_it), WIDGET(it), eo_it);
1422 eo_do(obj, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it)); 1422 eo_do(obj, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
1423 if (_elm_config->atspi_mode)
1424 elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
1423 sd->last_selected_item = eo_it; 1425 sd->last_selected_item = eo_it;
1424 1426
1425 _elm_list_unwalk(obj, sd); 1427 _elm_list_unwalk(obj, sd);
@@ -1488,6 +1490,8 @@ _item_unselect(Elm_List_Item_Data *it)
1488 (sd->select_mode == ELM_OBJECT_SELECT_MODE_NONE))) 1490 (sd->select_mode == ELM_OBJECT_SELECT_MODE_NONE)))
1489 eo_do(WIDGET(it), eo_event_callback_call 1491 eo_do(WIDGET(it), eo_event_callback_call
1490 (EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(it))); 1492 (EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(it)));
1493 if (_elm_config->atspi_mode)
1494 elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
1491 } 1495 }
1492 1496
1493 _elm_list_unwalk(obj, sd); 1497 _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)
160 if (item->icon) 160 if (item->icon)
161 elm_widget_signal_emit(item->icon, "elm,state,unselected", "elm"); 161 elm_widget_signal_emit(item->icon, "elm,state,unselected", "elm");
162 eo_do(WIDGET(item), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(item))); 162 eo_do(WIDGET(item), eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_UNSELECTED, EO_OBJ(item)));
163 if (_elm_config->atspi_mode)
164 elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(item), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
163} 165}
164 166
165static void 167static void
@@ -1168,6 +1170,8 @@ _item_select(Elm_Toolbar_Item_Data *it)
1168 } 1170 }
1169 eo_do(obj, eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, EO_OBJ(it))); 1171 eo_do(obj, eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, EO_OBJ(it)));
1170 eo_do(obj, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, EO_OBJ(it))); 1172 eo_do(obj, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, EO_OBJ(it)));
1173 if (_elm_config->atspi_mode)
1174 elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
1171} 1175}
1172 1176
1173static void 1177static void