summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-06-05 15:59:46 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2015-06-05 16:00:30 +0200
commit62a258dea7224656f6430708a45c95872f42d9fd (patch)
treedcda9cb9085a16dd997fe9be4d31e485ca78ce18
parentd403075e12c059e28f5287d381d8452bb19cec06 (diff)
atspi: fix popup role and signal emission
-rw-r--r--src/lib/elc_popup.c2
-rw-r--r--src/lib/elm_widget.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c
index a274591ae..965223fd5 100644
--- a/src/lib/elc_popup.c
+++ b/src/lib/elc_popup.c
@@ -1512,7 +1512,7 @@ _elm_popup_eo_base_constructor(Eo *obj, Elm_Popup_Data *_pd EINA_UNUSED)
1512 eo_do(obj, 1512 eo_do(obj,
1513 evas_obj_type_set(MY_CLASS_NAME_LEGACY), 1513 evas_obj_type_set(MY_CLASS_NAME_LEGACY),
1514 evas_obj_smart_callbacks_descriptions_set(_smart_callbacks), 1514 evas_obj_smart_callbacks_descriptions_set(_smart_callbacks),
1515 elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_POPUP_MENU)); 1515 elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_NOTIFICATION));
1516 1516
1517 return obj; 1517 return obj;
1518} 1518}
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index b826ee9cf..8ebb23f12 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -550,6 +550,8 @@ _elm_widget_evas_object_smart_show(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUS
550 Eo *parent; 550 Eo *parent;
551 eo_do(obj, parent = elm_interface_atspi_accessible_parent_get()); 551 eo_do(obj, parent = elm_interface_atspi_accessible_parent_get());
552 elm_interface_atspi_accessible_children_changed_added_signal_emit(parent, obj); 552 elm_interface_atspi_accessible_children_changed_added_signal_emit(parent, obj);
553 if (_elm_widget_onscreen_is(obj))
554 elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_SHOWING, EINA_TRUE);
553 } 555 }
554 556
555 it = evas_object_smart_iterator_new(obj); 557 it = evas_object_smart_iterator_new(obj);
@@ -574,6 +576,9 @@ _elm_widget_evas_object_smart_hide(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUS
574 evas_object_hide(o); 576 evas_object_hide(o);
575 } 577 }
576 eina_iterator_free(it); 578 eina_iterator_free(it);
579
580 if (_elm_config->atspi_mode)
581 elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_SHOWING, EINA_FALSE);
577} 582}
578 583
579EOLIAN static void 584EOLIAN static void