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)
downloadelementary-62a258dea7224656f6430708a45c95872f42d9fd.tar.gz
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)
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME_LEGACY),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks),
- elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_POPUP_MENU));
+ elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_NOTIFICATION));
return obj;
}
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
Eo *parent;
eo_do(obj, parent = elm_interface_atspi_accessible_parent_get());
elm_interface_atspi_accessible_children_changed_added_signal_emit(parent, obj);
+ if (_elm_widget_onscreen_is(obj))
+ elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_SHOWING, EINA_TRUE);
}
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
evas_object_hide(o);
}
eina_iterator_free(it);
+
+ if (_elm_config->atspi_mode)
+ elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_SHOWING, EINA_FALSE);
}
EOLIAN static void