//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
_atspi_multibuttonentry_item_register(obj, eo_item, EINA_TRUE);
//
return eo_item;
_access_multibuttonentry_label_register(obj, EINA_TRUE);
//TIZEN_ONLY(20160527) : expose label as at-spi object
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
_atspi_multibuttonentry_label_register(obj, EINA_TRUE);
///
evas_object_freeze_events_set(VIEW(it), EINA_FALSE);
//TIZEN ONLY(20151012): expose title as at-spi object
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
_atspi_expose_title(it, EINA_TRUE);
//
}
}
//TIZEN ONLY(20150717): expose title as at-spi object
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
_atspi_expose_title(obj, EINA_TRUE);
//
if (sd->title_text)
edje_object_message_signal_process(elm_layout_edje_get(obj));
//TIZEN_ONLY(20151012): Register smart callbacks for calendar buttons.
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
_atspi_expose_objects(obj, EINA_TRUE);
//
}
elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_LIST));
//TIZEN ONLY(20151012): expose flipselector top/bottom buttons for accessibility tree
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
_atspi_expose_flipselector_top_bottom(sd, EINA_TRUE);
//
return obj;
#endif
+//TIZEN_ONLY(20160710): Expose access object only when brigde is connected.
+static inline Eina_Bool
+_elm_atspi_enabled()
+{
+ Eo *bridge = NULL;
+ Eina_Bool ret = EINA_FALSE;
+ if (_elm_config->atspi_mode && (bridge = _elm_atspi_bridge_get()))
+ eo_do(bridge, ret = elm_obj_atspi_bridge_connected_get());
+ return ret;
+}
+//
+
/* Used by the paste handler */
void _elm_entry_entry_paste(Evas_Object *obj, const char *entry);