elm: fixed trivial formattings.

Just found them while reading codes.
This commit is contained in:
Daniel Juyung Seo 2014-05-10 23:15:54 +09:00
parent af92b3e6f9
commit 8ffbf246f4
18 changed files with 23 additions and 23 deletions

View File

@ -1271,7 +1271,7 @@ _resource_deleted(void *data, int type EINA_UNUSED, void *ev)
if (sd->mode == ELM_FILESELECTOR_LIST) if (sd->mode == ELM_FILESELECTOR_LIST)
{ {
it = elm_genlist_first_item_get(sd->files_view); it = elm_genlist_first_item_get(sd->files_view);
while(it) while (it)
{ {
if (!strcmp(elm_object_item_data_get(it), event->filename)) if (!strcmp(elm_object_item_data_get(it), event->filename))
{ {
@ -1284,7 +1284,7 @@ _resource_deleted(void *data, int type EINA_UNUSED, void *ev)
else else
{ {
it = elm_gengrid_first_item_get(sd->files_view); it = elm_gengrid_first_item_get(sd->files_view);
while(it) while (it)
{ {
if (!strcmp(elm_object_item_data_get(it), event->filename)) if (!strcmp(elm_object_item_data_get(it), event->filename))
{ {

View File

@ -996,7 +996,7 @@ _elm_naviframe_elm_container_content_set(Eo *obj, Elm_Naviframe_Data *sd EINA_UN
elm_object_item_part_content_set(it, part, content); elm_object_item_part_content_set(it, part, content);
if(content == elm_object_item_part_content_get(it, part)) if (content == elm_object_item_part_content_get(it, part))
return EINA_TRUE; return EINA_TRUE;
return EINA_FALSE; return EINA_FALSE;

View File

@ -17,7 +17,7 @@ _dbus_package_to_path(const char *pkg)
{ {
if (*pkg == '.') if (*pkg == '.')
eina_strbuf_append_char(buffer, '/'); eina_strbuf_append_char(buffer, '/');
else if(isalnum(*pkg)) else if (isalnum(*pkg))
eina_strbuf_append_char(buffer, *pkg); eina_strbuf_append_char(buffer, *pkg);
else else
eina_strbuf_append_printf(buffer, "_%02x", *pkg); eina_strbuf_append_printf(buffer, "_%02x", *pkg);

View File

@ -1679,7 +1679,7 @@ _children_changed_signal_send(void *data, Eo *obj, const Eo_Event_Description *d
return EINA_FALSE; return EINA_FALSE;
} }
switch(type) switch (type)
{ {
case ATSPI_OBJECT_CHILD_ADDED: case ATSPI_OBJECT_CHILD_ADDED:
atspi_desc = "add"; atspi_desc = "add";

View File

@ -4268,7 +4268,7 @@ _cont_obj_anim_start(void *data)
if (st->data_get) if (st->data_get)
{ /* collect info then start animation or start dragging */ { /* collect info then start animation or start dragging */
if(st->data_get( /* Collect drag info */ if (st->data_get( /* Collect drag info */
st->obj, /* The container object */ st->obj, /* The container object */
it, /* Drag started on this item */ it, /* Drag started on this item */
&st->user_info)) &st->user_info))

View File

@ -1617,7 +1617,7 @@ _palette_box_vertical_item_get(Eina_List* ref_item, enum Palette_Box_Direction d
if (!ref_item) return NULL; if (!ref_item) return NULL;
switch(dir) switch (dir)
{ {
case PALETTE_BOX_UP: case PALETTE_BOX_UP:
dir_func = eina_list_prev; dir_func = eina_list_prev;

View File

@ -819,7 +819,7 @@ _clipboard_state_change(Evas_Object *obj, Ecore_X_Event_Window_Property *ev)
elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_NONE); elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_NONE);
evas_object_smart_callback_call(obj, SIG_CLIPBOARD_STATE_OFF, NULL); evas_object_smart_callback_call(obj, SIG_CLIPBOARD_STATE_OFF, NULL);
} }
else if(state == ECORE_X_ILLUME_CLIPBOARD_STATE_ON) else if (state == ECORE_X_ILLUME_CLIPBOARD_STATE_ON)
{ {
elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_COMPRESS); elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_COMPRESS);
_autoscroll_objects_update(obj); _autoscroll_objects_update(obj);

View File

@ -4089,7 +4089,7 @@ _elm_entry_context_menu_disabled_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
EAPI const char * EAPI const char *
elm_entry_context_menu_item_label_get(const Elm_Entry_Context_Menu_Item *item) elm_entry_context_menu_item_label_get(const Elm_Entry_Context_Menu_Item *item)
{ {
if(!item) return NULL; if (!item) return NULL;
return item->label; return item->label;
} }
@ -4099,7 +4099,7 @@ elm_entry_context_menu_item_icon_get(const Elm_Entry_Context_Menu_Item *item,
const char **icon_group, const char **icon_group,
Elm_Icon_Type *icon_type) Elm_Icon_Type *icon_type)
{ {
if(!item) return; if (!item) return;
if (icon_file) *icon_file = item->icon_file; if (icon_file) *icon_file = item->icon_file;
if (icon_group) *icon_group = item->icon_group; if (icon_group) *icon_group = item->icon_group;
if (icon_type) *icon_type = item->icon_type; if (icon_type) *icon_type = item->icon_type;

View File

@ -1548,7 +1548,7 @@ _item_focus_up(Elm_Gengrid_Data *sd)
{ {
prev = (Elm_Gen_Item *)elm_gengrid_item_prev_get(sd->focused_item); prev = (Elm_Gen_Item *)elm_gengrid_item_prev_get(sd->focused_item);
if (!prev) return EINA_FALSE; if (!prev) return EINA_FALSE;
if(prev == (Elm_Gen_Item *)sd->focused_item) return EINA_FALSE; if (prev == (Elm_Gen_Item *)sd->focused_item) return EINA_FALSE;
} }
for (i = 1; i < sd->nmax; i++) for (i = 1; i < sd->nmax; i++)

View File

@ -2625,7 +2625,7 @@ _key_action_move_dir(Evas_Object *obj, Elm_Focus_Direction dir, Eina_Bool multi)
{ {
if (dir == ELM_FOCUS_UP) if (dir == ELM_FOCUS_UP)
it = elm_genlist_last_item_get(obj); it = elm_genlist_last_item_get(obj);
else if(dir == ELM_FOCUS_DOWN) else if (dir == ELM_FOCUS_DOWN)
it = elm_genlist_first_item_get(obj); it = elm_genlist_first_item_get(obj);
if (it && focus_only) if (it && focus_only)

View File

@ -1686,7 +1686,7 @@ _tap_gesture_check_finish(Gesture_Info *gesture, Evas_Coord tap_finger_size)
if (!_taps_rect_get(st->l, 0, &base)) if (!_taps_rect_get(st->l, 0, &base))
return EINA_FALSE; /* Should not happen */ return EINA_FALSE; /* Should not happen */
for(i = 1; i < st->n_taps_needed; i++) for (i = 1; i < st->n_taps_needed; i++)
{ /* Compare all other rects to base, tolerance is finger size */ { /* Compare all other rects to base, tolerance is finger size */
if (_taps_rect_get(st->l, i, &tmp)) if (_taps_rect_get(st->l, i, &tmp))
{ {

View File

@ -402,7 +402,7 @@ _elm_image_drag_n_drop_cb(void *elm_obj,
{ {
Eina_Bool ret = EINA_FALSE; Eina_Bool ret = EINA_FALSE;
eo_do(obj, ret = elm_obj_image_file_set(drop->data, NULL)); eo_do(obj, ret = elm_obj_image_file_set(drop->data, NULL));
if(ret) if (ret)
{ {
DBG("dnd: %s, %s, %s", elm_widget_type_get(elm_obj), DBG("dnd: %s, %s, %s", elm_widget_type_get(elm_obj),
SIG_DND, (char *)drop->data); SIG_DND, (char *)drop->data);

View File

@ -258,7 +258,7 @@ _elm_clouseau_reload()
_CLOUSEAU_LOAD_SYMBOL(_clouseau_info, app_connect); _CLOUSEAU_LOAD_SYMBOL(_clouseau_info, app_connect);
_clouseau_info.init(); _clouseau_info.init();
if(!_clouseau_info.app_connect(elm_app_name_get())) if (!_clouseau_info.app_connect(elm_app_name_get()))
{ {
ERR("Failed connecting to the clouseau server."); ERR("Failed connecting to the clouseau server.");
} }

View File

@ -140,7 +140,7 @@ _elm_progressbar_elm_widget_sub_object_del(Eo *obj, Elm_Progressbar_Data *_pd EI
{ {
Eina_Bool int_ret = EINA_FALSE; Eina_Bool int_ret = EINA_FALSE;
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj)); eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj));
if(!int_ret) return EINA_FALSE; if (!int_ret) return EINA_FALSE;
_icon_signal_emit(obj); _icon_signal_emit(obj);
@ -155,7 +155,7 @@ _elm_progressbar_elm_container_content_set(Eo *obj, Elm_Progressbar_Data *_pd EI
{ {
Eina_Bool int_ret = EINA_FALSE; Eina_Bool int_ret = EINA_FALSE;
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content)); eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content));
if(!int_ret) return EINA_FALSE; if (!int_ret) return EINA_FALSE;
_icon_signal_emit(obj); _icon_signal_emit(obj);

View File

@ -125,7 +125,7 @@ _elm_radio_elm_widget_sub_object_del(Eo *obj, Elm_Radio_Data *_pd EINA_UNUSED, E
{ {
Eina_Bool int_ret = EINA_FALSE; Eina_Bool int_ret = EINA_FALSE;
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj)); eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj));
if(!int_ret) return EINA_FALSE; if (!int_ret) return EINA_FALSE;
_icon_signal_emit(obj); _icon_signal_emit(obj);
@ -142,7 +142,7 @@ _elm_radio_elm_container_content_set(Eo *obj, Elm_Radio_Data *_pd EINA_UNUSED, c
{ {
Eina_Bool int_ret = EINA_FALSE; Eina_Bool int_ret = EINA_FALSE;
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content)); eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content));
if(!int_ret) return EINA_FALSE; if (!int_ret) return EINA_FALSE;
_icon_signal_emit(obj); _icon_signal_emit(obj);

View File

@ -70,7 +70,7 @@ _get_capabilities_cb(void *data EINA_UNUSED,
if (eldbus_message_error_get(msg, NULL, NULL) || if (eldbus_message_error_get(msg, NULL, NULL) ||
!eldbus_message_arguments_get(msg, "as", &arr)) goto end; !eldbus_message_arguments_get(msg, "as", &arr)) goto end;
while(eldbus_message_iter_get_and_next(arr, 's', &val)) while (eldbus_message_iter_get_and_next(arr, 's', &val))
if (!strcmp(val, "body-markup")) if (!strcmp(val, "body-markup"))
{ {
_has_markup = EINA_TRUE; _has_markup = EINA_TRUE;

View File

@ -2342,7 +2342,7 @@ _elm_widget_focus_list_next_get(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED,
focused_object = elm_widget_focused_object_get(obj); focused_object = elm_widget_focused_object_get(obj);
if (focused_object) if (focused_object)
{ {
if((dir == ELM_FOCUS_UP) if ((dir == ELM_FOCUS_UP)
|| (dir == ELM_FOCUS_DOWN) || (dir == ELM_FOCUS_DOWN)
|| (dir == ELM_FOCUS_RIGHT) || (dir == ELM_FOCUS_RIGHT)
|| (dir == ELM_FOCUS_LEFT)) || (dir == ELM_FOCUS_LEFT))

View File

@ -538,7 +538,7 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
msg = alloca(sizeof(Edje_Message_Float_Set) + sizeof(double)); msg = alloca(sizeof(Edje_Message_Float_Set) + sizeof(double));
msg->count = 2; msg->count = 2;
//Orient calculations if orient set //Orient calculations if orient set
switch(tt->orient) switch (tt->orient)
{ {
case ELM_TOOLTIP_ORIENT_TOP_LEFT: case ELM_TOOLTIP_ORIENT_TOP_LEFT:
evas_object_move(tt->tooltip, ox - tw, oy - th); evas_object_move(tt->tooltip, ox - tw, oy - th);