summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-05-10 23:15:54 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-05-10 23:44:27 +0900
commit173930811883621143f40f74ad57db8c3b9ea859 (patch)
tree67df5b0f6e3a4c193c73510f79be5c651d40e9f2
parent919abe724a2b7b9154d402c8c1dc588dd986c427 (diff)
elm: fixed trivial formattings.
Just found them while reading codes.
-rw-r--r--src/lib/elc_fileselector.c4
-rw-r--r--src/lib/elc_naviframe.c4
-rw-r--r--src/lib/elm_app_common.c2
-rw-r--r--src/lib/elm_atspi_bridge.c2
-rw-r--r--src/lib/elm_cnp.c2
-rw-r--r--src/lib/elm_colorselector.c2
-rw-r--r--src/lib/elm_conform.c2
-rw-r--r--src/lib/elm_entry.c4
-rw-r--r--src/lib/elm_gengrid.c2
-rw-r--r--src/lib/elm_genlist.c2
-rw-r--r--src/lib/elm_gesture_layer.c2
-rw-r--r--src/lib/elm_image.c2
-rw-r--r--src/lib/elm_main.c2
-rw-r--r--src/lib/elm_progressbar.c4
-rw-r--r--src/lib/elm_radio.c4
-rw-r--r--src/lib/elm_sys_notify.c2
-rw-r--r--src/lib/elm_widget.c2
-rw-r--r--src/lib/els_tooltip.c2
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)
1271 if (sd->mode == ELM_FILESELECTOR_LIST) 1271 if (sd->mode == ELM_FILESELECTOR_LIST)
1272 { 1272 {
1273 it = elm_genlist_first_item_get(sd->files_view); 1273 it = elm_genlist_first_item_get(sd->files_view);
1274 while(it) 1274 while (it)
1275 { 1275 {
1276 if (!strcmp(elm_object_item_data_get(it), event->filename)) 1276 if (!strcmp(elm_object_item_data_get(it), event->filename))
1277 { 1277 {
@@ -1284,7 +1284,7 @@ _resource_deleted(void *data, int type EINA_UNUSED, void *ev)
1284 else 1284 else
1285 { 1285 {
1286 it = elm_gengrid_first_item_get(sd->files_view); 1286 it = elm_gengrid_first_item_get(sd->files_view);
1287 while(it) 1287 while (it)
1288 { 1288 {
1289 if (!strcmp(elm_object_item_data_get(it), event->filename)) 1289 if (!strcmp(elm_object_item_data_get(it), event->filename))
1290 { 1290 {
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
996 996
997 elm_object_item_part_content_set(it, part, content); 997 elm_object_item_part_content_set(it, part, content);
998 998
999 if(content == elm_object_item_part_content_get(it, part)) 999 if (content == elm_object_item_part_content_get(it, part))
1000 return EINA_TRUE; 1000 return EINA_TRUE;
1001 1001
1002 return EINA_FALSE; 1002 return EINA_FALSE;
1003} 1003}
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)
17 { 17 {
18 if (*pkg == '.') 18 if (*pkg == '.')
19 eina_strbuf_append_char(buffer, '/'); 19 eina_strbuf_append_char(buffer, '/');
20 else if(isalnum(*pkg)) 20 else if (isalnum(*pkg))
21 eina_strbuf_append_char(buffer, *pkg); 21 eina_strbuf_append_char(buffer, *pkg);
22 else 22 else
23 eina_strbuf_append_printf(buffer, "_%02x", *pkg); 23 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
1679 return EINA_FALSE; 1679 return EINA_FALSE;
1680 } 1680 }
1681 1681
1682 switch(type) 1682 switch (type)
1683 { 1683 {
1684 case ATSPI_OBJECT_CHILD_ADDED: 1684 case ATSPI_OBJECT_CHILD_ADDED:
1685 atspi_desc = "add"; 1685 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)
4268 4268
4269 if (st->data_get) 4269 if (st->data_get)
4270 { /* collect info then start animation or start dragging */ 4270 { /* collect info then start animation or start dragging */
4271 if(st->data_get( /* Collect drag info */ 4271 if (st->data_get( /* Collect drag info */
4272 st->obj, /* The container object */ 4272 st->obj, /* The container object */
4273 it, /* Drag started on this item */ 4273 it, /* Drag started on this item */
4274 &st->user_info)) 4274 &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
1617 1617
1618 if (!ref_item) return NULL; 1618 if (!ref_item) return NULL;
1619 1619
1620 switch(dir) 1620 switch (dir)
1621 { 1621 {
1622 case PALETTE_BOX_UP: 1622 case PALETTE_BOX_UP:
1623 dir_func = eina_list_prev; 1623 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)
819 elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_NONE); 819 elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_NONE);
820 evas_object_smart_callback_call(obj, SIG_CLIPBOARD_STATE_OFF, NULL); 820 evas_object_smart_callback_call(obj, SIG_CLIPBOARD_STATE_OFF, NULL);
821 } 821 }
822 else if(state == ECORE_X_ILLUME_CLIPBOARD_STATE_ON) 822 else if (state == ECORE_X_ILLUME_CLIPBOARD_STATE_ON)
823 { 823 {
824 elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_COMPRESS); 824 elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_COMPRESS);
825 _autoscroll_objects_update(obj); 825 _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)
4089EAPI const char * 4089EAPI const char *
4090elm_entry_context_menu_item_label_get(const Elm_Entry_Context_Menu_Item *item) 4090elm_entry_context_menu_item_label_get(const Elm_Entry_Context_Menu_Item *item)
4091{ 4091{
4092 if(!item) return NULL; 4092 if (!item) return NULL;
4093 return item->label; 4093 return item->label;
4094} 4094}
4095 4095
@@ -4099,7 +4099,7 @@ elm_entry_context_menu_item_icon_get(const Elm_Entry_Context_Menu_Item *item,
4099 const char **icon_group, 4099 const char **icon_group,
4100 Elm_Icon_Type *icon_type) 4100 Elm_Icon_Type *icon_type)
4101{ 4101{
4102 if(!item) return; 4102 if (!item) return;
4103 if (icon_file) *icon_file = item->icon_file; 4103 if (icon_file) *icon_file = item->icon_file;
4104 if (icon_group) *icon_group = item->icon_group; 4104 if (icon_group) *icon_group = item->icon_group;
4105 if (icon_type) *icon_type = item->icon_type; 4105 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)
1548 { 1548 {
1549 prev = (Elm_Gen_Item *)elm_gengrid_item_prev_get(sd->focused_item); 1549 prev = (Elm_Gen_Item *)elm_gengrid_item_prev_get(sd->focused_item);
1550 if (!prev) return EINA_FALSE; 1550 if (!prev) return EINA_FALSE;
1551 if(prev == (Elm_Gen_Item *)sd->focused_item) return EINA_FALSE; 1551 if (prev == (Elm_Gen_Item *)sd->focused_item) return EINA_FALSE;
1552 } 1552 }
1553 1553
1554 for (i = 1; i < sd->nmax; i++) 1554 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)
2625 { 2625 {
2626 if (dir == ELM_FOCUS_UP) 2626 if (dir == ELM_FOCUS_UP)
2627 it = elm_genlist_last_item_get(obj); 2627 it = elm_genlist_last_item_get(obj);
2628 else if(dir == ELM_FOCUS_DOWN) 2628 else if (dir == ELM_FOCUS_DOWN)
2629 it = elm_genlist_first_item_get(obj); 2629 it = elm_genlist_first_item_get(obj);
2630 2630
2631 if (it && focus_only) 2631 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)
1686 if (!_taps_rect_get(st->l, 0, &base)) 1686 if (!_taps_rect_get(st->l, 0, &base))
1687 return EINA_FALSE; /* Should not happen */ 1687 return EINA_FALSE; /* Should not happen */
1688 1688
1689 for(i = 1; i < st->n_taps_needed; i++) 1689 for (i = 1; i < st->n_taps_needed; i++)
1690 { /* Compare all other rects to base, tolerance is finger size */ 1690 { /* Compare all other rects to base, tolerance is finger size */
1691 if (_taps_rect_get(st->l, i, &tmp)) 1691 if (_taps_rect_get(st->l, i, &tmp))
1692 { 1692 {
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,
402{ 402{
403 Eina_Bool ret = EINA_FALSE; 403 Eina_Bool ret = EINA_FALSE;
404 eo_do(obj, ret = elm_obj_image_file_set(drop->data, NULL)); 404 eo_do(obj, ret = elm_obj_image_file_set(drop->data, NULL));
405 if(ret) 405 if (ret)
406 { 406 {
407 DBG("dnd: %s, %s, %s", elm_widget_type_get(elm_obj), 407 DBG("dnd: %s, %s, %s", elm_widget_type_get(elm_obj),
408 SIG_DND, (char *)drop->data); 408 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()
258 _CLOUSEAU_LOAD_SYMBOL(_clouseau_info, app_connect); 258 _CLOUSEAU_LOAD_SYMBOL(_clouseau_info, app_connect);
259 259
260 _clouseau_info.init(); 260 _clouseau_info.init();
261 if(!_clouseau_info.app_connect(elm_app_name_get())) 261 if (!_clouseau_info.app_connect(elm_app_name_get()))
262 { 262 {
263 ERR("Failed connecting to the clouseau server."); 263 ERR("Failed connecting to the clouseau server.");
264 } 264 }
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
140{ 140{
141 Eina_Bool int_ret = EINA_FALSE; 141 Eina_Bool int_ret = EINA_FALSE;
142 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj)); 142 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj));
143 if(!int_ret) return EINA_FALSE; 143 if (!int_ret) return EINA_FALSE;
144 144
145 _icon_signal_emit(obj); 145 _icon_signal_emit(obj);
146 146
@@ -155,7 +155,7 @@ _elm_progressbar_elm_container_content_set(Eo *obj, Elm_Progressbar_Data *_pd EI
155{ 155{
156 Eina_Bool int_ret = EINA_FALSE; 156 Eina_Bool int_ret = EINA_FALSE;
157 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content)); 157 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content));
158 if(!int_ret) return EINA_FALSE; 158 if (!int_ret) return EINA_FALSE;
159 159
160 _icon_signal_emit(obj); 160 _icon_signal_emit(obj);
161 161
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
125{ 125{
126 Eina_Bool int_ret = EINA_FALSE; 126 Eina_Bool int_ret = EINA_FALSE;
127 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj)); 127 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_sub_object_del(sobj));
128 if(!int_ret) return EINA_FALSE; 128 if (!int_ret) return EINA_FALSE;
129 129
130 _icon_signal_emit(obj); 130 _icon_signal_emit(obj);
131 131
@@ -142,7 +142,7 @@ _elm_radio_elm_container_content_set(Eo *obj, Elm_Radio_Data *_pd EINA_UNUSED, c
142{ 142{
143 Eina_Bool int_ret = EINA_FALSE; 143 Eina_Bool int_ret = EINA_FALSE;
144 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content)); 144 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_set(part, content));
145 if(!int_ret) return EINA_FALSE; 145 if (!int_ret) return EINA_FALSE;
146 146
147 _icon_signal_emit(obj); 147 _icon_signal_emit(obj);
148 148
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,
70 if (eldbus_message_error_get(msg, NULL, NULL) || 70 if (eldbus_message_error_get(msg, NULL, NULL) ||
71 !eldbus_message_arguments_get(msg, "as", &arr)) goto end; 71 !eldbus_message_arguments_get(msg, "as", &arr)) goto end;
72 72
73 while(eldbus_message_iter_get_and_next(arr, 's', &val)) 73 while (eldbus_message_iter_get_and_next(arr, 's', &val))
74 if (!strcmp(val, "body-markup")) 74 if (!strcmp(val, "body-markup"))
75 { 75 {
76 _has_markup = EINA_TRUE; 76 _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,
2342 focused_object = elm_widget_focused_object_get(obj); 2342 focused_object = elm_widget_focused_object_get(obj);
2343 if (focused_object) 2343 if (focused_object)
2344 { 2344 {
2345 if((dir == ELM_FOCUS_UP) 2345 if ((dir == ELM_FOCUS_UP)
2346 || (dir == ELM_FOCUS_DOWN) 2346 || (dir == ELM_FOCUS_DOWN)
2347 || (dir == ELM_FOCUS_RIGHT) 2347 || (dir == ELM_FOCUS_RIGHT)
2348 || (dir == ELM_FOCUS_LEFT)) 2348 || (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)
538 msg = alloca(sizeof(Edje_Message_Float_Set) + sizeof(double)); 538 msg = alloca(sizeof(Edje_Message_Float_Set) + sizeof(double));
539 msg->count = 2; 539 msg->count = 2;
540 //Orient calculations if orient set 540 //Orient calculations if orient set
541 switch(tt->orient) 541 switch (tt->orient)
542 { 542 {
543 case ELM_TOOLTIP_ORIENT_TOP_LEFT: 543 case ELM_TOOLTIP_ORIENT_TOP_LEFT:
544 evas_object_move(tt->tooltip, ox - tw, oy - th); 544 evas_object_move(tt->tooltip, ox - tw, oy - th);