remove trailing spaces and fix coding style

SVN revision: 77838
This commit is contained in:
Jihoon Kim 2012-10-11 00:35:00 +00:00
parent fc1d6f99de
commit d19a9669c3
5 changed files with 40 additions and 40 deletions

View File

@ -315,7 +315,7 @@ _view_update(Evas_Object *obj)
_shrink_mode_set(obj, EINA_TRUE); _shrink_mode_set(obj, EINA_TRUE);
// update guidetext // update guidetext
_visual_guide_text_set(obj); _visual_guide_text_set(obj);
} }
static Eina_Bool static Eina_Bool
@ -1274,7 +1274,7 @@ _box_layout_cb(Evas_Object *o,
const Eina_List *l, *l_next; const Eina_List *l, *l_next;
Evas_Object *obj; Evas_Object *obj;
double ax, ay; double ax, ay;
_box_min_size_calculate(o, priv); _box_min_size_calculate(o, priv);
evas_object_geometry_get(o, &x, &y, &w, &h); evas_object_geometry_get(o, &x, &y, &w, &h);

View File

@ -147,7 +147,7 @@ _prefix_check(void)
dirs[1] = app_compile_lib_dir; dirs[1] = app_compile_lib_dir;
dirs[2] = app_compile_data_dir; dirs[2] = app_compile_data_dir;
dirs[3] = app_compile_locale_dir; dirs[3] = app_compile_locale_dir;
if (!dirs[0]) dirs[0] = "/usr/local/bin"; if (!dirs[0]) dirs[0] = "/usr/local/bin";
if (!dirs[1]) dirs[1] = "/usr/local/lib"; if (!dirs[1]) dirs[1] = "/usr/local/lib";
if (!dirs[2]) if (!dirs[2])
@ -422,7 +422,7 @@ elm_quicklaunch_init(int argc,
ecore_file_init(); ecore_file_init();
_elm_exit_handler = ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, _elm_signal_exit, NULL); _elm_exit_handler = ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, _elm_signal_exit, NULL);
if (argv) _elm_appname = strdup(ecore_file_file_get(argv[0])); if (argv) _elm_appname = strdup(ecore_file_file_get(argv[0]));
pfx = eina_prefix_new(argv ? argv[0] : NULL, elm_quicklaunch_init, pfx = eina_prefix_new(argv ? argv[0] : NULL, elm_quicklaunch_init,
@ -455,7 +455,7 @@ elm_quicklaunch_sub_init(int argc,
return _elm_sub_init_count; return _elm_sub_init_count;
#endif #endif
} }
if (!quicklaunch_on) if (!quicklaunch_on)
{ {
ecore_app_args_set(argc, (const char **)argv); ecore_app_args_set(argc, (const char **)argv);
@ -721,7 +721,7 @@ elm_quicklaunch_fork(int argc,
_elm_appname = NULL; _elm_appname = NULL;
if ((argv) && (argv[0])) if ((argv) && (argv[0]))
_elm_appname = strdup(ecore_file_file_get(argv[0])); _elm_appname = strdup(ecore_file_file_get(argv[0]));
#ifdef SEMI_BROKEN_QUICKLAUNCH #ifdef SEMI_BROKEN_QUICKLAUNCH
ecore_app_args_set(argc, (const char **)argv); ecore_app_args_set(argc, (const char **)argv);
evas_init(); evas_init();
@ -1060,15 +1060,15 @@ elm_object_focus_set(Evas_Object *obj,
if (elm_widget_is(obj)) if (elm_widget_is(obj))
{ {
const char *type; const char *type;
if (focus == elm_widget_focus_get(obj)) return; if (focus == elm_widget_focus_get(obj)) return;
// ugly, but, special case for inlined windows // ugly, but, special case for inlined windows
type = evas_object_type_get(obj); type = evas_object_type_get(obj);
if ((type) && (!strcmp(type, "elm_win"))) if ((type) && (!strcmp(type, "elm_win")))
{ {
Evas_Object *inlined = elm_win_inlined_image_object_get(obj); Evas_Object *inlined = elm_win_inlined_image_object_get(obj);
if (inlined) if (inlined)
{ {
evas_object_focus_set(inlined, focus); evas_object_focus_set(inlined, focus);

View File

@ -529,7 +529,7 @@ _access_spinner_register(Evas_Object *obj)
sd->increment_btn_access = sd->increment_btn_access =
_elm_access_edje_object_part_object_register _elm_access_edje_object_part_object_register
(obj, elm_layout_edje_get(obj), increment_part); (obj, elm_layout_edje_get(obj), increment_part);
ai = _elm_access_object_get(sd->increment_btn_access); ai = _elm_access_object_get(sd->increment_btn_access);
_elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("spinner increment button")); _elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("spinner increment button"));
@ -541,7 +541,7 @@ _access_spinner_register(Evas_Object *obj)
ai = _elm_access_object_get(sd->decrement_btn_access); ai = _elm_access_object_get(sd->decrement_btn_access);
_elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("spinner decrement button")); _elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("spinner decrement button"));
// spinner label // spinner label
sd->access_obj = _elm_access_edje_object_part_object_register sd->access_obj = _elm_access_edje_object_part_object_register
(obj, elm_layout_edje_get(obj), "access_text"); (obj, elm_layout_edje_get(obj), "access_text");
@ -663,7 +663,7 @@ _access_hook(Evas_Object *obj, Eina_Bool is_access)
{ {
ELM_SPINNER_CHECK(obj); ELM_SPINNER_CHECK(obj);
ELM_SPINNER_DATA_GET(obj, sd); ELM_SPINNER_DATA_GET(obj, sd);
if (is_access) if (is_access)
{ {
ELM_WIDGET_CLASS(ELM_WIDGET_DATA(sd)->api)->focus_next = ELM_WIDGET_CLASS(ELM_WIDGET_DATA(sd)->api)->focus_next =

View File

@ -146,7 +146,7 @@ _store_genlist_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
} }
eina_lock_release(&sti->lock); eina_lock_release(&sti->lock);
eina_lock_free(&sti->lock); eina_lock_free(&sti->lock);
st->items = NULL; st->items = NULL;
free(sti); free(sti);
} }
// FIXME: kill threads and more // FIXME: kill threads and more
@ -398,7 +398,7 @@ _store_filesystem_list_do(void *data, Ecore_Thread *th __UNUSED__)
Eina_Bool ok; Eina_Bool ok;
size_t pathsz = finf->path_length + 1; size_t pathsz = finf->path_length + 1;
if (finf->path[finf->name_start] == '.') continue ; if (finf->path[finf->name_start] == '.') continue ;
info = calloc(1, sizeof(Elm_Store_Item_Info_Filesystem) + pathsz); info = calloc(1, sizeof(Elm_Store_Item_Info_Filesystem) + pathsz);
if (!info) continue; if (!info) continue;

View File

@ -205,24 +205,24 @@ _elm_win_state_eval(void *data __UNUSED__)
{ {
Eina_List *l; Eina_List *l;
Evas_Object *obj; Evas_Object *obj;
_elm_win_state_eval_job = NULL; _elm_win_state_eval_job = NULL;
if (_elm_config->auto_norender_withdrawn) if (_elm_config->auto_norender_withdrawn)
{ {
EINA_LIST_FOREACH(_elm_win_list, l, obj) EINA_LIST_FOREACH(_elm_win_list, l, obj)
{ {
if ((elm_win_withdrawn_get(obj)) || if ((elm_win_withdrawn_get(obj)) ||
((elm_win_iconified_get(obj) && ((elm_win_iconified_get(obj) &&
(_elm_config->auto_norender_iconified_same_as_withdrawn)))) (_elm_config->auto_norender_iconified_same_as_withdrawn))))
{ {
if (!evas_object_data_get(obj, "__win_auto_norender")) if (!evas_object_data_get(obj, "__win_auto_norender"))
{ {
Evas *evas = evas_object_evas_get(obj); Evas *evas = evas_object_evas_get(obj);
elm_win_norender_push(obj); elm_win_norender_push(obj);
evas_object_data_set(obj, "__win_auto_norender", obj); evas_object_data_set(obj, "__win_auto_norender", obj);
if (_elm_config->auto_flush_withdrawn) if (_elm_config->auto_flush_withdrawn)
{ {
edje_file_cache_flush(); edje_file_cache_flush();
@ -258,7 +258,7 @@ _elm_win_state_eval(void *data __UNUSED__)
} }
else else
{ {
if ((_elm_win_count_iconified + _elm_win_count_withdrawn) >= if ((_elm_win_count_iconified + _elm_win_count_withdrawn) >=
_elm_win_count_shown) _elm_win_count_shown)
{ {
if (!_elm_win_auto_throttled) if (!_elm_win_auto_throttled)
@ -780,7 +780,7 @@ _elm_win_focus_in(Ecore_Evas *ee)
EINA_SAFETY_ON_NULL_RETURN(sd); EINA_SAFETY_ON_NULL_RETURN(sd);
obj = ELM_WIDGET_DATA(sd)->obj; obj = ELM_WIDGET_DATA(sd)->obj;
_elm_widget_top_win_focused_set(obj, EINA_TRUE); _elm_widget_top_win_focused_set(obj, EINA_TRUE);
if (!elm_widget_focus_order_get(obj)) if (!elm_widget_focus_order_get(obj))
{ {
@ -846,7 +846,7 @@ _elm_win_state_change(Ecore_Evas *ee)
if (sd->withdrawn) _elm_win_count_withdrawn--; if (sd->withdrawn) _elm_win_count_withdrawn--;
if (sd->iconified) _elm_win_count_iconified--; if (sd->iconified) _elm_win_count_iconified--;
if (sd->withdrawn != ecore_evas_withdrawn_get(sd->ee)) if (sd->withdrawn != ecore_evas_withdrawn_get(sd->ee))
{ {
sd->withdrawn = ecore_evas_withdrawn_get(sd->ee); sd->withdrawn = ecore_evas_withdrawn_get(sd->ee);
@ -876,7 +876,7 @@ _elm_win_state_change(Ecore_Evas *ee)
if (sd->withdrawn) _elm_win_count_withdrawn++; if (sd->withdrawn) _elm_win_count_withdrawn++;
if (sd->iconified) _elm_win_count_iconified++; if (sd->iconified) _elm_win_count_iconified++;
_elm_win_state_eval_queue(); _elm_win_state_eval_queue();
if ((ch_withdrawn) || (ch_iconified)) if ((ch_withdrawn) || (ch_iconified))
{ {
if (sd->withdrawn) if (sd->withdrawn)
@ -1305,7 +1305,7 @@ _elm_win_smart_del(Evas_Object *obj)
if (evas_object_visible_get(obj)) _elm_win_count_shown--; if (evas_object_visible_get(obj)) _elm_win_count_shown--;
_elm_win_count--; _elm_win_count--;
_elm_win_state_eval_queue(); _elm_win_state_eval_queue();
if (sd->ee) if (sd->ee)
{ {
ecore_evas_callback_delete_request_set(sd->ee, NULL); ecore_evas_callback_delete_request_set(sd->ee, NULL);
@ -1978,16 +1978,16 @@ _elm_win_frame_cb_resize_show(void *data,
else if (!strcmp(source, "elm.event.resize.r")) else if (!strcmp(source, "elm.event.resize.r"))
ecore_wl_window_cursor_from_name_set(sd->wl.win, ELM_CURSOR_RIGHT_SIDE); ecore_wl_window_cursor_from_name_set(sd->wl.win, ELM_CURSOR_RIGHT_SIDE);
else if (!strcmp(source, "elm.event.resize.tl")) else if (!strcmp(source, "elm.event.resize.tl"))
ecore_wl_window_cursor_from_name_set(sd->wl.win, ecore_wl_window_cursor_from_name_set(sd->wl.win,
ELM_CURSOR_TOP_LEFT_CORNER); ELM_CURSOR_TOP_LEFT_CORNER);
else if (!strcmp(source, "elm.event.resize.tr")) else if (!strcmp(source, "elm.event.resize.tr"))
ecore_wl_window_cursor_from_name_set(sd->wl.win, ecore_wl_window_cursor_from_name_set(sd->wl.win,
ELM_CURSOR_TOP_RIGHT_CORNER); ELM_CURSOR_TOP_RIGHT_CORNER);
else if (!strcmp(source, "elm.event.resize.bl")) else if (!strcmp(source, "elm.event.resize.bl"))
ecore_wl_window_cursor_from_name_set(sd->wl.win, ecore_wl_window_cursor_from_name_set(sd->wl.win,
ELM_CURSOR_BOTTOM_LEFT_CORNER); ELM_CURSOR_BOTTOM_LEFT_CORNER);
else if (!strcmp(source, "elm.event.resize.br")) else if (!strcmp(source, "elm.event.resize.br"))
ecore_wl_window_cursor_from_name_set(sd->wl.win, ecore_wl_window_cursor_from_name_set(sd->wl.win,
ELM_CURSOR_BOTTOM_RIGHT_CORNER); ELM_CURSOR_BOTTOM_RIGHT_CORNER);
else else
ecore_wl_window_cursor_default_restore(sd->wl.win); ecore_wl_window_cursor_default_restore(sd->wl.win);
@ -2085,15 +2085,15 @@ _elm_win_frame_cb_close(void *data,
Evas_Object *win; Evas_Object *win;
/* FIXME: After the current freeze, this should be handled differently. /* FIXME: After the current freeze, this should be handled differently.
* *
* Ideally, we would want to mimic the X11 backend and use something * Ideally, we would want to mimic the X11 backend and use something
* like ECORE_WL_EVENT_WINDOW_DELETE and handle the delete_request * like ECORE_WL_EVENT_WINDOW_DELETE and handle the delete_request
* inside of ecore_evas. That would be the 'proper' way, but since we are * inside of ecore_evas. That would be the 'proper' way, but since we are
* in a freeze right now, I cannot add a new event value, or a new * in a freeze right now, I cannot add a new event value, or a new
* event structure to ecore_wayland. * event structure to ecore_wayland.
* *
* So yes, this is a temporary 'stop-gap' solution which will be fixed * So yes, this is a temporary 'stop-gap' solution which will be fixed
* when the freeze is over, but it does fix a trac bug for now, and in a * when the freeze is over, but it does fix a trac bug for now, and in a
* way which does not break API or the freeze. - dh * way which does not break API or the freeze. - dh
*/ */
@ -2153,7 +2153,7 @@ _elm_win_frame_add(Elm_Win_Smart_Data *sd,
} }
} }
static void static void
_elm_win_frame_del(Elm_Win_Smart_Data *sd) _elm_win_frame_del(Elm_Win_Smart_Data *sd)
{ {
if (sd->frame_obj) if (sd->frame_obj)
@ -2177,7 +2177,7 @@ _elm_win_frame_del(Elm_Win_Smart_Data *sd)
(sd->frame_obj, "elm,action,maximize", "elm", (sd->frame_obj, "elm,action,maximize", "elm",
_elm_win_frame_cb_maximize); _elm_win_frame_cb_maximize);
edje_object_signal_callback_del edje_object_signal_callback_del
(sd->frame_obj, "elm,action,close", "elm", (sd->frame_obj, "elm,action,close", "elm",
_elm_win_frame_cb_close); _elm_win_frame_cb_close);
evas_object_del(sd->frame_obj); evas_object_del(sd->frame_obj);
@ -2700,7 +2700,7 @@ elm_win_add(Evas_Object *parent,
_elm_win_list = eina_list_append(_elm_win_list, obj); _elm_win_list = eina_list_append(_elm_win_list, obj);
_elm_win_count++; _elm_win_count++;
if (((fallback) && (!strcmp(fallback, "Software FB"))) || if (((fallback) && (!strcmp(fallback, "Software FB"))) ||
((!fallback) && (ENGINE_COMPARE(ELM_SOFTWARE_FB)))) ((!fallback) && (ENGINE_COMPARE(ELM_SOFTWARE_FB))))
{ {
@ -3400,7 +3400,7 @@ elm_win_norender_push(Evas_Object *obj)
{ {
ELM_WIN_CHECK(obj); ELM_WIN_CHECK(obj);
ELM_WIN_DATA_GET_OR_RETURN(obj, sd); ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
sd->norender++; sd->norender++;
if (sd->norender == 1) ecore_evas_manual_render_set(sd->ee, EINA_TRUE); if (sd->norender == 1) ecore_evas_manual_render_set(sd->ee, EINA_TRUE);
} }