stanluk pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=d1488623ca8cc91da5da95bc0e933f81ba83fc50

commit d1488623ca8cc91da5da95bc0e933f81ba83fc50
Author: Lukasz Stanislawski <l.stanisl...@samsung.com>
Date:   Fri Oct 2 11:35:27 2015 +0200

    widget_item: emit atspi children-changed only for non-destroyed parent.
---
 src/lib/elm_interface_atspi_accessible.c | 2 +-
 src/lib/elm_widget.c                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_interface_atspi_accessible.c 
b/src/lib/elm_interface_atspi_accessible.c
index 5bfb80e..483a35f 100644
--- a/src/lib/elm_interface_atspi_accessible.c
+++ b/src/lib/elm_interface_atspi_accessible.c
@@ -300,7 +300,7 @@ _elm_interface_atspi_accessible_event_emit(Eo *class 
EINA_UNUSED, void *pd EINA_
 
    if (!accessible || !event || !eo_isa(accessible, 
ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN))
      {
-        CRI("Invalid accessibility event emit parameters");
+        CRI("Invalid parameters, event: %s, obj: %s", event ? event->name : 
"NULL", accessible ? eo_class_name_get(accessible) : "NULL");
         return;
      }
 
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index a8f5174..b14a625 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -4434,7 +4434,7 @@ _elm_widget_item_eo_base_destructor(Eo *eo_item, 
Elm_Widget_Item_Data *item)
    eo_do(eo_item, elm_interface_atspi_accessible_description_set(NULL));
    eo_do(eo_item, elm_interface_atspi_accessible_name_set(NULL));
 
-   if (_elm_config->atspi_mode)
+   if (_elm_config->atspi_mode && item->widget)
      
elm_interface_atspi_accessible_children_changed_del_signal_emit(item->widget, 
eo_item);
 
    elm_interface_atspi_accessible_removed(eo_item);

-- 


Reply via email to