elm: fixed trivial formattings.
Just found them while reading codes.
This commit is contained in:
parent
af92b3e6f9
commit
8ffbf246f4
|
@ -1271,7 +1271,7 @@ _resource_deleted(void *data, int type EINA_UNUSED, void *ev)
|
|||
if (sd->mode == ELM_FILESELECTOR_LIST)
|
||||
{
|
||||
it = elm_genlist_first_item_get(sd->files_view);
|
||||
while(it)
|
||||
while (it)
|
||||
{
|
||||
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
|
||||
{
|
||||
it = elm_gengrid_first_item_get(sd->files_view);
|
||||
while(it)
|
||||
while (it)
|
||||
{
|
||||
if (!strcmp(elm_object_item_data_get(it), event->filename))
|
||||
{
|
||||
|
|
|
@ -996,8 +996,8 @@ _elm_naviframe_elm_container_content_set(Eo *obj, Elm_Naviframe_Data *sd EINA_UN
|
|||
|
||||
elm_object_item_part_content_set(it, part, content);
|
||||
|
||||
if(content == elm_object_item_part_content_get(it, part))
|
||||
return EINA_TRUE;
|
||||
if (content == elm_object_item_part_content_get(it, part))
|
||||
return EINA_TRUE;
|
||||
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ _dbus_package_to_path(const char *pkg)
|
|||
{
|
||||
if (*pkg == '.')
|
||||
eina_strbuf_append_char(buffer, '/');
|
||||
else if(isalnum(*pkg))
|
||||
else if (isalnum(*pkg))
|
||||
eina_strbuf_append_char(buffer, *pkg);
|
||||
else
|
||||
eina_strbuf_append_printf(buffer, "_%02x", *pkg);
|
||||
|
|
|
@ -1679,7 +1679,7 @@ _children_changed_signal_send(void *data, Eo *obj, const Eo_Event_Description *d
|
|||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case ATSPI_OBJECT_CHILD_ADDED:
|
||||
atspi_desc = "add";
|
||||
|
|
|
@ -4268,7 +4268,7 @@ _cont_obj_anim_start(void *data)
|
|||
|
||||
if (st->data_get)
|
||||
{ /* 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 */
|
||||
it, /* Drag started on this item */
|
||||
&st->user_info))
|
||||
|
|
|
@ -1617,7 +1617,7 @@ _palette_box_vertical_item_get(Eina_List* ref_item, enum Palette_Box_Direction d
|
|||
|
||||
if (!ref_item) return NULL;
|
||||
|
||||
switch(dir)
|
||||
switch (dir)
|
||||
{
|
||||
case PALETTE_BOX_UP:
|
||||
dir_func = eina_list_prev;
|
||||
|
|
|
@ -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);
|
||||
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);
|
||||
_autoscroll_objects_update(obj);
|
||||
|
|
|
@ -4089,7 +4089,7 @@ _elm_entry_context_menu_disabled_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
|
|||
EAPI const char *
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -4099,7 +4099,7 @@ elm_entry_context_menu_item_icon_get(const Elm_Entry_Context_Menu_Item *item,
|
|||
const char **icon_group,
|
||||
Elm_Icon_Type *icon_type)
|
||||
{
|
||||
if(!item) return;
|
||||
if (!item) return;
|
||||
if (icon_file) *icon_file = item->icon_file;
|
||||
if (icon_group) *icon_group = item->icon_group;
|
||||
if (icon_type) *icon_type = item->icon_type;
|
||||
|
|
|
@ -1548,7 +1548,7 @@ _item_focus_up(Elm_Gengrid_Data *sd)
|
|||
{
|
||||
prev = (Elm_Gen_Item *)elm_gengrid_item_prev_get(sd->focused_item);
|
||||
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++)
|
||||
|
|
|
@ -2625,7 +2625,7 @@ _key_action_move_dir(Evas_Object *obj, Elm_Focus_Direction dir, Eina_Bool multi)
|
|||
{
|
||||
if (dir == ELM_FOCUS_UP)
|
||||
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);
|
||||
|
||||
if (it && focus_only)
|
||||
|
|
|
@ -1686,7 +1686,7 @@ _tap_gesture_check_finish(Gesture_Info *gesture, Evas_Coord tap_finger_size)
|
|||
if (!_taps_rect_get(st->l, 0, &base))
|
||||
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 */
|
||||
if (_taps_rect_get(st->l, i, &tmp))
|
||||
{
|
||||
|
|
|
@ -402,7 +402,7 @@ _elm_image_drag_n_drop_cb(void *elm_obj,
|
|||
{
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
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),
|
||||
SIG_DND, (char *)drop->data);
|
||||
|
|
|
@ -258,7 +258,7 @@ _elm_clouseau_reload()
|
|||
_CLOUSEAU_LOAD_SYMBOL(_clouseau_info, app_connect);
|
||||
|
||||
_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.");
|
||||
}
|
||||
|
|
|
@ -140,7 +140,7 @@ _elm_progressbar_elm_widget_sub_object_del(Eo *obj, Elm_Progressbar_Data *_pd EI
|
|||
{
|
||||
Eina_Bool int_ret = EINA_FALSE;
|
||||
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);
|
||||
|
||||
|
@ -155,7 +155,7 @@ _elm_progressbar_elm_container_content_set(Eo *obj, Elm_Progressbar_Data *_pd EI
|
|||
{
|
||||
Eina_Bool int_ret = EINA_FALSE;
|
||||
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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
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);
|
||||
|
||||
|
@ -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;
|
||||
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);
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ _get_capabilities_cb(void *data EINA_UNUSED,
|
|||
if (eldbus_message_error_get(msg, NULL, NULL) ||
|
||||
!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"))
|
||||
{
|
||||
_has_markup = EINA_TRUE;
|
||||
|
|
|
@ -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);
|
||||
if (focused_object)
|
||||
{
|
||||
if((dir == ELM_FOCUS_UP)
|
||||
if ((dir == ELM_FOCUS_UP)
|
||||
|| (dir == ELM_FOCUS_DOWN)
|
||||
|| (dir == ELM_FOCUS_RIGHT)
|
||||
|| (dir == ELM_FOCUS_LEFT))
|
||||
|
|
|
@ -538,7 +538,7 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
|
|||
msg = alloca(sizeof(Edje_Message_Float_Set) + sizeof(double));
|
||||
msg->count = 2;
|
||||
//Orient calculations if orient set
|
||||
switch(tt->orient)
|
||||
switch (tt->orient)
|
||||
{
|
||||
case ELM_TOOLTIP_ORIENT_TOP_LEFT:
|
||||
evas_object_move(tt->tooltip, ox - tw, oy - th);
|
||||
|
|
Loading…
Reference in New Issue