}
if (!id) {
- if (!obj_info->id)
+ if (!obj_info->id) {
return edje;
+ }
continue;
} else if (!obj_info->id) {
continue;
}
- if (!strcmp(obj_info->id, id))
+ if (!strcmp(obj_info->id, id)) {
return edje;
+ }
}
DbgPrint("EDJE[%s] is not found\n", id);
int ret;
edje = find_edje(handle, id);
- if (!edje)
+ if (!edje) {
return LB_STATUS_ERROR_NOT_EXIST;
+ }
ret = sscanf(rgba, "%d %d %d %d %d %d %d %d %d %d %d %d",
r, g, b, a, /* OBJECT */
double timestamp;
ao = evas_object_data_get(part_obj, "ao");
- if (!ao)
+ if (!ao) {
return;
+ }
edje = evas_object_data_get(ao, "edje");
- if (!edje)
+ if (!edje) {
return;
+ }
e = evas_object_evas_get(part_obj);
evas_object_geometry_get(part_obj, &x, &y, &w, &h);
len--;
}
- if (len < 4)
+ if (len < 4) {
return;
+ }
img_opt->aspect = !strncasecmp(value, "true", 4);
DbgPrint("Parsed ASPECT: %d (%s)\n", img_opt->aspect, value);
len--;
}
- if (len < 4)
+ if (len < 4) {
return;
+ }
img_opt->orient = !strncasecmp(value, "true", 4);
DbgPrint("Parsed ORIENT: %d (%s)\n", img_opt->orient, value);
len--;
}
- if (!strncasecmp(value, "in-size", len))
+ if (!strncasecmp(value, "in-size", len)) {
img_opt->fill = FILL_IN_SIZE;
- else if (!strncasecmp(value, "over-size", len))
+ } else if (!strncasecmp(value, "over-size", len)) {
img_opt->fill = FILL_OVER_SIZE;
- else
+ } else {
img_opt->fill = FILL_DISABLE;
+ }
DbgPrint("Parsed FILL: %d (%s)\n", img_opt->fill, value);
}
int idx;
int tag;
- if (!option || !*option)
+ if (!option || !*option) {
return;
+ }
state = STATE_START;
/*!
}
break;
case STATE_ERROR:
- if (*ptr == ';')
+ if (*ptr == ';') {
state = STATE_START;
- else if (*ptr == '\0')
+ } else if (*ptr == '\0') {
state = STATE_END;
+ }
break;
default:
break;
Evas_Object *ao;
EINA_LIST_FOREACH_SAFE(obj_info->children, l, n, child) {
- if (child->obj != img)
+ if (child->obj != img) {
continue;
+ }
obj_info->children = eina_list_remove(obj_info->children, child);
free(child->part);
Eina_List *n;
EINA_LIST_FOREACH_SAFE(parent_obj_info->children, l, n, child) {
- if (child->obj != obj)
+ if (child->obj != obj) {
continue;
+ }
/*!
* \note
if (event_type & LB_SCRIPT_ACCESS_EVENT) {
Elm_Access_Action_Info info;
Elm_Access_Action_Type action;
- const Eina_List *chain;
memset(&info, 0, sizeof(info));
- chain = elm_object_focus_custom_chain_get(edje);
- DbgPrint("Focus chain : %d\n", eina_list_count(chain));
-
if ((event_type & LB_SCRIPT_ACCESS_HIGHLIGHT) == LB_SCRIPT_ACCESS_HIGHLIGHT) {
action = ELM_ACCESS_ACTION_HIGHLIGHT;
info.x = x;
Eina_List *n;
EINA_LIST_FOREACH_SAFE(obj_info->children, l, n, child) {
- if (child->obj != obj)
+ if (child->obj != obj) {
continue;
+ }
obj_info->children = eina_list_remove(obj_info->children, child);
if (!elm_layout_file_set(obj, path, group)) {
int err;
- const char *errmsg;
-
err = edje_object_load_error_get(elm_layout_edje_get(obj));
- errmsg = edje_load_error_str(err);
- ErrPrint("Could not load %s from %s: %s\n", group, path, errmsg);
+ ErrPrint("Could not load %s from %s: %s\n", group, path, edje_load_error_str(err));
evas_object_del(obj);
return LB_STATUS_ERROR_IO;
}
Evas_Object *edje;
edje = find_edje(handle, id);
- if (!edje)
+ if (!edje) {
return LB_STATUS_ERROR_NOT_EXIST;
+ }
elm_object_signal_emit(edje, signal, part);
return LB_STATUS_SUCCESS;
Evas_Object *edje;
edje = find_edje(handle, id);
- if (!edje)
+ if (!edje) {
return LB_STATUS_ERROR_NOT_EXIST;
+ }
edje_object_part_drag_value_set(elm_layout_edje_get(edje), part, x, y);
return LB_STATUS_SUCCESS;
Evas_Object *edje;
edje = find_edje(handle, id);
- if (!edje)
+ if (!edje) {
return LB_STATUS_ERROR_NOT_EXIST;
+ }
if (!id) {
handle->w = w;
handle->category = NULL;
}
- if (!category)
+ if (!category) {
return LB_STATUS_SUCCESS;
+ }
handle->category = strdup(category);
if (!handle->category) {
s_info.handle_list = eina_list_remove(s_info.handle_list, handle);
edje = eina_list_nth(handle->obj_list, 0);
- if (edje)
+ if (edje) {
evas_object_del(edje);
+ }
free(handle->category);
free(handle->file);
if (!elm_layout_file_set(edje, handle->file, handle->group)) {
int err;
- const char *errmsg;
err = edje_object_load_error_get(elm_layout_edje_get(edje));
- errmsg = edje_load_error_str(err);
- ErrPrint("Could not load %s from %s: %s\n", handle->group, handle->file, errmsg);
+ ErrPrint("Could not load %s from %s: %s\n", handle->group, handle->file, edje_load_error_str(err));
evas_object_del(edje);
evas_object_del(obj_info->parent);
free(obj_info);
struct obj_info *obj_info;
obj_info = evas_object_data_get(edje, "obj_info");
- if (obj_info)
+ if (obj_info) {
parent = obj_info->parent;
+ }
evas_object_del(edje);
}
{
int size;
- if (system_settings_get_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, &size) != SYSTEM_SETTINGS_ERROR_NONE)
+ if (system_settings_get_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, &size) != SYSTEM_SETTINGS_ERROR_NONE) {
return;
+ }
size = convert_font_size(size);