diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-05-10 23:15:54 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-05-10 23:44:27 +0900 |
commit | 173930811883621143f40f74ad57db8c3b9ea859 (patch) | |
tree | 67df5b0f6e3a4c193c73510f79be5c651d40e9f2 | |
parent | 919abe724a2b7b9154d402c8c1dc588dd986c427 (diff) | |
download | elementary-173930811883621143f40f74ad57db8c3b9ea859.tar.gz |
elm: fixed trivial formattings.
Just found them while reading codes.
-rw-r--r-- | src/lib/elc_fileselector.c | 4 | ||||
-rw-r--r-- | src/lib/elc_naviframe.c | 4 | ||||
-rw-r--r-- | src/lib/elm_app_common.c | 2 | ||||
-rw-r--r-- | src/lib/elm_atspi_bridge.c | 2 | ||||
-rw-r--r-- | src/lib/elm_cnp.c | 2 | ||||
-rw-r--r-- | src/lib/elm_colorselector.c | 2 | ||||
-rw-r--r-- | src/lib/elm_conform.c | 2 | ||||
-rw-r--r-- | src/lib/elm_entry.c | 4 | ||||
-rw-r--r-- | src/lib/elm_gengrid.c | 2 | ||||
-rw-r--r-- | src/lib/elm_genlist.c | 2 | ||||
-rw-r--r-- | src/lib/elm_gesture_layer.c | 2 | ||||
-rw-r--r-- | src/lib/elm_image.c | 2 | ||||
-rw-r--r-- | src/lib/elm_main.c | 2 | ||||
-rw-r--r-- | src/lib/elm_progressbar.c | 4 | ||||
-rw-r--r-- | src/lib/elm_radio.c | 4 | ||||
-rw-r--r-- | src/lib/elm_sys_notify.c | 2 | ||||
-rw-r--r-- | src/lib/elm_widget.c | 2 | ||||
-rw-r--r-- | src/lib/els_tooltip.c | 2 |
18 files changed, 23 insertions, 23 deletions
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c index 1da1788f1..6e1199875 100644 --- a/src/lib/elc_fileselector.c +++ b/src/lib/elc_fileselector.c @@ -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)) { diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 9ce18c9b2..93971450b 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -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; } diff --git a/src/lib/elm_app_common.c b/src/lib/elm_app_common.c index 31537f64f..a3e13b4d1 100644 --- a/src/lib/elm_app_common.c +++ b/src/lib/elm_app_common.c @@ -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); diff --git a/src/lib/elm_atspi_bridge.c b/src/lib/elm_atspi_bridge.c index 27c1d2aa6..216fdfd04 100644 --- a/src/lib/elm_atspi_bridge.c +++ b/src/lib/elm_atspi_bridge.c @@ -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"; diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c index 996209a9c..2d5f4b91b 100644 --- a/src/lib/elm_cnp.c +++ b/src/lib/elm_cnp.c @@ -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)) diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c index d1345cb01..ed4e67520 100644 --- a/src/lib/elm_colorselector.c +++ b/src/lib/elm_colorselector.c @@ -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; diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index 9a7fb8347..f207ba5f2 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -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); diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 829092cc1..53c334ed0 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -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; diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index ee70a1287..2ca5ad1cd 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -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++) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 333c949fd..2761a3503 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -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) diff --git a/src/lib/elm_gesture_layer.c b/src/lib/elm_gesture_layer.c index 88aa0e3dc..67830d40e 100644 --- a/src/lib/elm_gesture_layer.c +++ b/src/lib/elm_gesture_layer.c @@ -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)) { diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c index ce4d07946..306c21a6d 100644 --- a/src/lib/elm_image.c +++ b/src/lib/elm_image.c @@ -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); diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 2faa8ee53..341ae6a69 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -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."); } diff --git a/src/lib/elm_progressbar.c b/src/lib/elm_progressbar.c index 862ee3e32..91c890d94 100644 --- a/src/lib/elm_progressbar.c +++ b/src/lib/elm_progressbar.c @@ -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); diff --git a/src/lib/elm_radio.c b/src/lib/elm_radio.c index c6183ef0d..54204893c 100644 --- a/src/lib/elm_radio.c +++ b/src/lib/elm_radio.c @@ -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); diff --git a/src/lib/elm_sys_notify.c b/src/lib/elm_sys_notify.c index 9c354ccc2..279957734 100644 --- a/src/lib/elm_sys_notify.c +++ b/src/lib/elm_sys_notify.c @@ -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; diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 82295de34..96f385345 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -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)) diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c index bc24676bd..a9880f0da 100644 --- a/src/lib/els_tooltip.c +++ b/src/lib/els_tooltip.c @@ -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); |