} else if (1 == click_method) {
VC_ELM_LOG_DBG("click method - focus/key");
bool clicked = false;
- if (0 != strcmp(evas_object_type_get((Evas_Object*)info->address), "text") && 0 != strcmp(evas_object_type_get((Evas_Object*)info->address), "textblock")) {
+ if (0 != strcmp(EVAS_OBJECT_TYPE_GET((Evas_Object*)info->address), "text") && 0 != strcmp(EVAS_OBJECT_TYPE_GET((Evas_Object*)info->address), "textblock")) {
VC_ELM_LOG_DBG("Click event");
if (EINA_TRUE == elm_object_focus_get((Evas_Object*)info->address)) {
VC_ELM_LOG_DBG("Already focused");
VC_ELM_LOG_DBG("action(%s)", &cmd[strlen(temp) + 1]);
}
found->cmd = temp;
- VC_ELM_LOG_DBG("unwrapping %s %s for %s(%s)", param1, param2, _get_ui_object_name(found->obj), evas_object_type_get(found->obj));
+ VC_ELM_LOG_DBG("unwrapping %s %s for %s(%s)", param1, param2, _get_ui_object_name(found->obj), EVAS_OBJECT_TYPE_GET(found->obj));
found->unwrap_callback(found, action, param2);
return EINA_TRUE;
do {
Evas_Object *ee = eina_list_data_get(tmp_list);
eina_hash_foreach(command_item_map, __item_item_map_foreach, ee);
- VC_ELM_LOG_DBG("ctx popup object(%p)(%s)", ee, evas_object_type_get(ee));
+ VC_ELM_LOG_DBG("ctx popup object(%p)(%s)", ee, EVAS_OBJECT_TYPE_GET(ee));
VC_ELM_LOG_DBG("cmd(%s) hint(%s)", evas_object_data_get(ee, VC_ELM_CMD_DATA_KEY), evas_object_data_get(ee, VC_ELM_HINT_DATA_KEY));
if (evas_object_data_get(ee, VC_ELM_CMD_DATA_KEY) || evas_object_data_get(ee, VC_ELM_HINT_DATA_KEY))
ret = eina_list_append(ret, (void *)ee);
{
Eina_Bool visible = evas_object_visible_get(widget);
- VC_ELM_LOG_DBG("IS visible (%p)(%s)(%s), visible(%d)", widget, _get_ui_object_name(widget), evas_object_type_get(widget), visible);
+ VC_ELM_LOG_DBG("IS visible (%p)(%s)(%s), visible(%d)", widget, _get_ui_object_name(widget), EVAS_OBJECT_TYPE_GET(widget), visible);
if (visible) {
Eina_List *list = NULL;
const Eina_List *constant_list = NULL;
evas_object_geometry_get(above_obj, &my_x, &my_y, &my_w, &my_h);
- if (strstr(evas_object_type_get(above_obj), "Elm") && !strstr(evas_object_type_get(above_obj), "Elm_Win") && evas_object_visible_get(above_obj) && ((my_x >= 0) && (my_y >= 0) && (my_w > 0) && (my_h > 0))) {
+ if (strstr(EVAS_OBJECT_TYPE_GET(above_obj), "Elm") && !strstr(EVAS_OBJECT_TYPE_GET(above_obj), "Elm_Win") && evas_object_visible_get(above_obj) && ((my_x >= 0) && (my_y >= 0) && (my_w > 0) && (my_h > 0))) {
if ((my_x <= x) && (my_y <= y) && ((my_x + my_w) >= (x + w)) && ((my_y + my_h) >= (y + h)))
return 1;
}
}
}
VC_ELM_LOG_DBG("info(%s) parent(%s) grand(%s)", elm_widget_type_get((Evas_Object*)info->address), (!parent) ? "NULL" : elm_widget_type_get((Evas_Object*)parent->address), widget_type);
- // VC_ELM_LOG_DBG("info(%s) parent(%s) grand(%s)", evas_object_type_get((Evas_Object*)info->address), evas_object_type_get((Evas_Object*)parent->address), evas_object_type_get((Evas_Object*)grand->address));
+ // VC_ELM_LOG_DBG("info(%s) parent(%s) grand(%s)", EVAS_OBJECT_TYPE_GET((Evas_Object*)info->address), EVAS_OBJECT_TYPE_GET((Evas_Object*)parent->address), EVAS_OBJECT_TYPE_GET((Evas_Object*)grand->address));
if (NULL != widget_type && (!strcmp(widget_type, "Elm_Genlist") || !strcmp(widget_type, "Elm_Gengrid") || !strcmp(widget_type, "Elm_List"))) {
int x = info->geometry_info.x;
if (NULL != item) {
parent = elm_object_parent_widget_get(_vc_elm_core_get_evas_object(item));
- VC_ELM_LOG_DBG("Parent evas_object(%s)(%s)", _get_ui_object_name(parent), evas_object_type_get(parent));
+ VC_ELM_LOG_DBG("Parent evas_object(%s)(%s)", _get_ui_object_name(parent), EVAS_OBJECT_TYPE_GET(parent));
while (NULL != parent) {
if (0 == strcmp(_get_ui_object_name(parent), "Elm_Genlist")) {
evas_object_geometry_get(_vc_elm_core_get_evas_object(item), &x, &y, &w, &h);
EINA_LIST_FREE(objs, obj) {
VC_ELM_LOG_DBG("foreach obj %p", (void*)obj);
window = elm_object_top_widget_get(obj);
- if (window && !strcmp(evas_object_type_get(window), "Elm_Win") && EINA_TRUE == elm_win_focus_get(window)) {
+ if (window && !strcmp(EVAS_OBJECT_TYPE_GET(window), "Elm_Win") && EINA_TRUE == elm_win_focus_get(window)) {
VC_ELM_LOG_DBG("NEW Focused g_default %ud", elm_win_xwindow_get(window));
g_default_window = window;
}
static Eina_Bool
evas_object_type_match(const Evas_Object *obj, const char *type)
{
- int ret = strcmp(evas_object_type_get(obj), type);
+ int ret = strcmp(EVAS_OBJECT_TYPE_GET(obj), type);
if (!ret) return EINA_TRUE;
return EINA_FALSE;
object_info->rgb_info.b = b;
object_info->rgb_info.a = a;
} else {
- object_info->type = calloc(1, strlen(evas_object_type_get(obj)) + 1);
- strncpy(object_info->type, evas_object_type_get(obj), strlen(evas_object_type_get(obj)) + 1);
+ object_info->type = calloc(1, strlen(EVAS_OBJECT_TYPE_GET(obj)) + 1);
+ strncpy(object_info->type, EVAS_OBJECT_TYPE_GET(obj), strlen(EVAS_OBJECT_TYPE_GET(obj)) + 1);
}
smart_parent_obj = evas_object_smart_parent_get(obj);
// image info save
- if (!strcmp(evas_object_type_get(obj), "elm_icon") ||
- !strcmp(evas_object_type_get(obj), "elm_image")) {
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_icon") ||
+ !strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_image")) {
elm_image_file_get(obj, &file, &key);
evas_object_data_set(obj, "image_name", file);
}
}
text = NULL;
- if (!strcmp(evas_object_type_get(obj), "text"))
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "text"))
text = eina_stringshare_add(evas_object_text_text_get(obj));
- else if (!strcmp(evas_object_type_get(obj), "textblock")) {
+ else if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "textblock")) {
ret = evas_object_textblock_text_markup_get(obj);
temp = evas_textblock_text_markup_to_utf8(obj, ret);
text = eina_stringshare_add(temp);
static Eina_Bool _is_clickable_object(Evas_Object *obj)
{
- if (!strcmp(evas_object_type_get(obj), "elm_win") || !strcmp(evas_object_type_get(obj), "elm_naviframe") || !strcmp(evas_object_type_get(obj), "elm_label")
- || !strcmp(evas_object_type_get(obj), "elm_ctxpopup") || !strcmp(evas_object_type_get(obj), "elm_popup")) {
- VC_ELM_LOG_DUMP("Not clickable object(%s)", evas_object_type_get(obj));
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_win") || !strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_naviframe") || !strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_label")
+ || !strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_ctxpopup") || !strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_popup")) {
+ VC_ELM_LOG_DUMP("Not clickable object(%s)", EVAS_OBJECT_TYPE_GET(obj));
return EINA_FALSE;
}
while (NULL != parent_info) {
const char* widget_type = elm_widget_type_get((const Evas_Object*)(parent_info->address));
if (NULL != widget_type) {
- VC_ELM_LOG_DUMP("[DEBUG] object_type(%s), widget_type(%s)", evas_object_type_get((Evas_Object*)(parent_info->address)), widget_type);
+ VC_ELM_LOG_DUMP("[DEBUG] object_type(%s), widget_type(%s)", EVAS_OBJECT_TYPE_GET((Evas_Object*)(parent_info->address)), widget_type);
if (!strcmp(widget_type, "Elm_Genlist") || !strcmp(widget_type, "Elm_Gengrid") || !strcmp(widget_type, "Elm_List") || !strcmp(widget_type, "Elm_Ctxpopup") || !strcmp(widget_type, "Elm_Index"))
return EINA_TRUE;
}
while (NULL != parent_info) {
const char* widget_type = elm_widget_type_get((const Evas_Object*)(parent_info->address));
if (NULL != widget_type) {
- VC_ELM_LOG_DUMP("[DEBUG] object_type(%s), widget_type(%s)", evas_object_type_get((Evas_Object*)(parent_info->address)), widget_type);
+ VC_ELM_LOG_DUMP("[DEBUG] object_type(%s), widget_type(%s)", EVAS_OBJECT_TYPE_GET((Evas_Object*)(parent_info->address)), widget_type);
if (!strcmp(widget_type, "Elm_Ctxpopup"))
return EINA_TRUE;
}
while (NULL != parent_info) {
const char* widget_type = elm_widget_type_get((const Evas_Object*)(parent_info->address));
if (NULL != widget_type) {
- VC_ELM_LOG_DUMP("[DEBUG] object_type(%s), widget_type(%s)", evas_object_type_get((Evas_Object*)(parent_info->address)), widget_type);
+ VC_ELM_LOG_DUMP("[DEBUG] object_type(%s), widget_type(%s)", EVAS_OBJECT_TYPE_GET((Evas_Object*)(parent_info->address)), widget_type);
if (!strcmp(widget_type, "Elm_Toolbar"))
return EINA_TRUE;
}
Object_Info *object_info = NULL;
char* temp = NULL;
- VC_ELM_LOG_DUMP("[%d] Object(%p)(%s), text(%s)(%s)", cnt, obj, evas_object_type_get(obj), (!evas_object_text_text_get(obj)) ? " " : evas_object_text_text_get(obj), !elm_atspi_accessible_name_get(obj) ? " " : elm_atspi_accessible_name_get(obj));
+ VC_ELM_LOG_DUMP("[%d] Object(%p)(%s), text(%s)(%s)", cnt, obj, EVAS_OBJECT_TYPE_GET(obj), (!evas_object_text_text_get(obj)) ? " " : evas_object_text_text_get(obj), !elm_atspi_accessible_name_get(obj) ? " " : elm_atspi_accessible_name_get(obj));
// visible check
if (!evas_object_is_visible_get(obj)) {
- VC_ELM_LOG_DUMP(" [%d] Object(%s) : Invisible)", cnt, evas_object_type_get(obj));
+ VC_ELM_LOG_DUMP(" [%d] Object(%s) : Invisible)", cnt, EVAS_OBJECT_TYPE_GET(obj));
return;
}
}
if (find_popup) {
- VC_ELM_LOG_DUMP(" [%d] Object(%s) : Find_popup", cnt, evas_object_type_get(obj));
+ VC_ELM_LOG_DUMP(" [%d] Object(%s) : Find_popup", cnt, EVAS_OBJECT_TYPE_GET(obj));
return;
}
goto next;
}
- if (!strcmp(evas_object_type_get(obj), "text") || !strcmp(evas_object_type_get(obj), "textblock")) {
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "text") || !strcmp(EVAS_OBJECT_TYPE_GET(obj), "textblock")) {
if (!parent_widget_focusable && !list_type) {
VC_ELM_LOG_DUMP("## parent_widget_focusable(%d), list_type(%d)", parent_widget_focusable, list_type);
goto next;
}
if (skip_text) {
skip_text = 0;
- VC_ELM_LOG_DUMP(" [%d] Object(%s) : Skip_text", cnt, evas_object_type_get(obj));
+ VC_ELM_LOG_DUMP(" [%d] Object(%s) : Skip_text", cnt, EVAS_OBJECT_TYPE_GET(obj));
return;
}
}
object_info->rgb_info.b = b;
object_info->rgb_info.a = a;
} else {
- object_info->type = calloc(1, strlen(evas_object_type_get(obj)) + 1);
- strncpy(object_info->type, evas_object_type_get(obj), strlen(evas_object_type_get(obj)) + 1);
+ object_info->type = calloc(1, strlen(EVAS_OBJECT_TYPE_GET(obj)) + 1);
+ strncpy(object_info->type, EVAS_OBJECT_TYPE_GET(obj), strlen(EVAS_OBJECT_TYPE_GET(obj)) + 1);
}
smart_parent_obj = evas_object_smart_parent_get(obj);
// image info save
- if (!strcmp(evas_object_type_get(obj), "elm_icon") ||
- !strcmp(evas_object_type_get(obj), "elm_image")) {
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_icon") ||
+ !strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_image")) {
elm_image_file_get(obj, &file, &key);
evas_object_data_set(obj, "image_name", file);
}
text = NULL;
if (0 == vc_elm_efl_dump_is_vt_auto_enabled()) {
- if (!strcmp(evas_object_type_get(obj), "text"))
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "text"))
text = eina_stringshare_add(evas_object_text_text_get(obj));
- else if (!strcmp(evas_object_type_get(obj), "textblock")) {
+ else if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "textblock")) {
ret = evas_object_textblock_text_markup_get(obj);
temp = evas_textblock_text_markup_to_utf8(obj, ret);
text = eina_stringshare_add(temp);
}
}
} else {
- if (!strcmp(evas_object_type_get(obj), "text") && EINA_TRUE == _is_descendant_of_list(object_info)) {
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "text") && EINA_TRUE == _is_descendant_of_list(object_info)) {
text = eina_stringshare_add(evas_object_text_text_get(obj));
VC_ELM_LOG_DUMP("####### [DEBUG] text(%s), atspi_text(%s)", text, elm_atspi_accessible_name_get(obj));
- } else if (!strcmp(evas_object_type_get(obj), "textblock") && EINA_TRUE == _is_descendant_of_list(object_info)) {
+ } else if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "textblock") && EINA_TRUE == _is_descendant_of_list(object_info)) {
ret = evas_object_textblock_text_markup_get(obj);
temp = evas_textblock_text_markup_to_utf8(obj, ret);
text = eina_stringshare_add(temp);
} else if (elm_atspi_accessible_name_get(obj) && EINA_TRUE == object_info->focusable && EINA_TRUE == _is_clickable_object(obj)) {
text = elm_atspi_accessible_name_get(obj);
VC_ELM_LOG_DUMP("####### [DEBUG] atspi_text(%s)", text);
- } else if (elm_atspi_accessible_name_get(obj) && !strcmp(evas_object_type_get(obj), "elm_layout") && EINA_TRUE == _is_descendant_of_toolbar(object_info)) {
+ } else if (elm_atspi_accessible_name_get(obj) && !strcmp(EVAS_OBJECT_TYPE_GET(obj), "elm_layout") && EINA_TRUE == _is_descendant_of_toolbar(object_info)) {
text = elm_atspi_accessible_name_get(obj);
VC_ELM_LOG_DUMP("####### [DEBUG] toolbar(%s)", text);
} else {
if (EINA_FALSE == _has_accessible_name(object_info)) {
- if (!strcmp(evas_object_type_get(obj), "text")) {
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "text")) {
text = eina_stringshare_add(evas_object_text_text_get(obj));
VC_ELM_LOG_DUMP("####### [DEBUG] text(%s), part_name(%s)", text, object_info->part_name);
- } else if (!strcmp(evas_object_type_get(obj), "textblock")) {
+ } else if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "textblock")) {
ret = evas_object_textblock_text_markup_get(obj);
temp = evas_textblock_text_markup_to_utf8(obj, ret);
text = eina_stringshare_add(temp);
_obj_tree_items_exclude_unfocusable_text(util_mgr, child, object_info, parent_widget_focusable, list_type, cnt + 1);
if (evas_object_type_match(obj, "elm_popup") || evas_object_type_match(obj, "elm_ctxpopup")) find_popup = 1;
}
- VC_ELM_LOG_DUMP(" [%d] %s : return", cnt, evas_object_type_get(obj));
+ VC_ELM_LOG_DUMP(" [%d] %s : return", cnt, EVAS_OBJECT_TYPE_GET(obj));
}
static void
if (is_clip) goto next;
text = NULL;
- if (!strcmp(evas_object_type_get(obj), "text"))
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "text"))
text = eina_stringshare_add(evas_object_text_text_get(obj));
- else if (!strcmp(evas_object_type_get(obj), "textblock")) {
+ else if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "textblock")) {
ret = evas_object_textblock_text_markup_get(obj);
temp = evas_textblock_text_markup_to_utf8(obj, ret);
text = eina_stringshare_add(temp);
}
text = NULL;
- if (!strcmp(evas_object_type_get(obj), "text")) {
+ if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "text")) {
if (!parent_widget_focusable) goto next;
text = eina_stringshare_add(evas_object_text_text_get(obj));
- } else if (!strcmp(evas_object_type_get(obj), "textblock")) {
+ } else if (!strcmp(EVAS_OBJECT_TYPE_GET(obj), "textblock")) {
if (!parent_widget_focusable) goto next;
ret = evas_object_textblock_text_markup_get(obj);
temp = evas_textblock_text_markup_to_utf8(obj, ret);