tree-wide: get rid of trailing whitespace (part 4)

Remove trailing whitespaces

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11823
enlightenment-0.24
Elyes HAOUAS 2 years ago committed by Stefan Schmidt
parent 2b1a72f3cb
commit cd5f79c814
  1. 6
      src/bin/e_sys.c
  2. 2
      src/bin/e_system.c
  3. 10
      src/bin/e_thumb_main.c
  4. 12
      src/bin/e_widget_filepreview.c
  5. 6
      src/bin/e_widget_preview.c
  6. 22
      src/bin/e_xsettings.c
  7. 2
      src/bin/e_zone.c

@ -577,7 +577,7 @@ static void
_e_sys_systemd_handle_inhibit(void)
{
Eldbus_Message *m;
if (!login1_manger_proxy) return;
if (!(m = eldbus_proxy_method_call_new(login1_manger_proxy, "Inhibit")))
return;
@ -626,7 +626,7 @@ static void
_e_sys_systemd_exists_cb(void *data EINA_UNUSED, const Eldbus_Message *m, Eldbus_Pending *p EINA_UNUSED)
{
const char *id = NULL;
if (eldbus_message_error_get(m, NULL, NULL)) goto fail;
if (!eldbus_message_arguments_get(m, "s", &id)) goto fail;
if ((!id) || (id[0] != ':')) goto fail;
@ -690,7 +690,7 @@ _e_sys_susp_hib_check_timer_cb(void *data EINA_UNUSED)
_e_sys_susp_hib_check_timer = NULL;
if (_e_sys_resume_delay_timer)
ecore_timer_del(_e_sys_resume_delay_timer);
_e_sys_resume_delay_timer =
_e_sys_resume_delay_timer =
ecore_timer_add(0.2, _e_sys_resume_delay, NULL);
return EINA_FALSE;
}

@ -273,7 +273,7 @@ EINTERN int
e_system_init(void)
{
// XXX:
//
//
// if exe_data - parse/get data
// ... per message - call registered cb's for that msg
_handler_del = ecore_event_handler_add(ECORE_EXE_EVENT_DEL, _cb_exe_del, NULL);

@ -346,7 +346,7 @@ _e_thumb_generate(E_Thumb *eth)
unsigned int *data1;
Eina_Bool sortkey;
Evas_Object *im2, *bg;
im = NULL;
im2 = NULL;
bg = NULL;
@ -476,7 +476,7 @@ _e_thumb_generate(E_Thumb *eth)
evas_object_move(bg, 0, 0);
evas_object_resize(bg, ww, hh);
evas_object_show(bg);
im = evas_object_text_add(evas);
evas_object_text_font_set(im, eth->file, hh / 4);
evas_object_color_set(im, 192, 192, 192, 255);
@ -489,7 +489,7 @@ _e_thumb_generate(E_Thumb *eth)
evas_object_move(im, tx, ty);
evas_object_resize(im, tw, th);
evas_object_show(im);
im2 = evas_object_text_add(evas);
evas_object_text_font_set(im2, eth->file, hh / 4);
evas_object_color_set(im2, 255, 255, 255, 255);
@ -566,7 +566,7 @@ process:
if (data)
{
unsigned int *data2;
data2 = malloc(ww * hh * sizeof(unsigned int));
memcpy(data2, data, ww * hh * sizeof(unsigned int));
ww = 1; hh = 1;
@ -592,7 +592,7 @@ process:
1, 14, 7, 8,
4, 11, 2, 13
};
/* ww = hh = 1 here */
data3 = malloc(sizeof(unsigned int));
memcpy(data3, data, sizeof(unsigned int));

@ -646,7 +646,7 @@ _e_wid_fprev_preview_file(E_Widget_Data *wd)
{
if (statvfs(mpoint, &stfs) != 0) ok = EINA_FALSE;
}
fragsz = stfs.f_frsize;
blknum = stfs.f_blocks;
blkused = stfs.f_blocks - stfs.f_bfree;
@ -1135,7 +1135,7 @@ _e_wid_fprev_preview_font(E_Widget_Data *wd)
buf = alloca(strlen(escaped) + 4096);
snprintf(buf, strlen(wd->path) + 4096,
"<font=%s>"
"<font_size=28>"
"28 - ABC abc 0123 @!?#$*{}<ps/>"
"The quick brown fox jumps.<ps/>"
@ -1143,19 +1143,19 @@ _e_wid_fprev_preview_font(E_Widget_Data *wd)
"<font_size=20>"
"20 - ABC abc 0123 @!?#$*{}<ps/>"
"The quick brown fox jumps.<ps/>"
"<font_size=16>"
"16 - ABC abc 0123 @!?#$*{}<ps/>"
"The quick brown fox jumps.<ps/>"
"<font_size=12>"
"12 - ABC abc 0123 @!?#$*{}<ps/>"
"The quick brown fox jumps.<ps/>"
"<font_size=10>"
"10 - ABC abc 0123 @!?#$*{}<ps/>"
"The quick brown fox jumps.<ps/>"
"<font_size=8>"
"8 - ABC abc 0123 @!?#$*{}<ps/>"
"The quick brown fox jumps.<ps/>"

@ -25,14 +25,14 @@ e_widget_preview_add(Evas *evas, int minw, int minh)
if (!wd) return NULL;
wd->obj = obj;
wd->o_frame = edje_object_add(evas);
e_theme_edje_object_set(wd->o_frame, "base/theme/widgets",
"e/widgets/preview");
evas_object_show(wd->o_frame);
e_widget_sub_object_add(obj, wd->o_frame);
e_widget_resize_object_set(obj, wd->o_frame);
wd->img = e_livethumb_add(evas);
e_livethumb_vsize_set(wd->img, minw * 2, minh * 2);
evas_object_size_hint_min_set(wd->img, minw, minh);
@ -41,7 +41,7 @@ e_widget_preview_add(Evas *evas, int minw, int minh)
evas_object_show(wd->img);
e_widget_sub_object_add(obj, wd->img);
edje_object_part_swallow(wd->o_frame, "e.swallow.content", wd->img);
e_widget_data_set(obj, wd);
e_widget_can_focus_set(obj, 0);
edje_object_size_min_calc(wd->o_frame, &mw, &mh);

@ -92,7 +92,7 @@ _e_xsettings_selection_owner_set(void)
Eina_Bool ret;
atom = _e_xsettings_atom_screen_get(0);
ecore_x_selection_owner_set(e_comp->cm_selection, atom,
ecore_x_selection_owner_set(e_comp->cm_selection, atom,
ecore_x_current_time_get());
ecore_x_sync();
cur_selection = ecore_x_selection_owner_get(atom);
@ -391,7 +391,7 @@ _e_xsettings_gtk_icon_update(void)
EINA_LIST_FOREACH(e_comp->clients, l, ec)
if (ec->icccm.state)
ecore_x_client_message8_send(e_client_util_win_get(ec),
ecore_x_client_message8_send(e_client_util_win_get(ec),
_atom_gtk_iconthemes, NULL, 0);
}
@ -403,7 +403,7 @@ _e_xsettings_gtk_rcfiles_update(void)
EINA_LIST_FOREACH(e_comp->clients, l, ec)
if (ec->icccm.state)
ecore_x_client_message8_send(e_client_util_win_get(ec),
ecore_x_client_message8_send(e_client_util_win_get(ec),
_atom_gtk_rcfiles, NULL, 0);
}
@ -440,9 +440,9 @@ _e_xsettings_error_cb(void *data, Eio_File *handler EINA_UNUSED, int error EINA_
reset = EINA_FALSE;
if (l)
{
snprintf(buf, sizeof(buf), "%s/themes/%s",
snprintf(buf, sizeof(buf), "%s/themes/%s",
(char *)eina_list_data_get(l), _setting_theme);
eio_op = eio_file_direct_stat(buf, _e_xsettings_done_cb,
eio_op = eio_file_direct_stat(buf, _e_xsettings_done_cb,
_e_xsettings_error_cb, l);
return;
}
@ -452,7 +452,7 @@ _e_xsettings_error_cb(void *data, Eio_File *handler EINA_UNUSED, int error EINA_
_setting_theme = NULL;
if (e_config->xsettings.net_theme_name)
_e_xsettings_string_set(_setting_theme_name,
_e_xsettings_string_set(_setting_theme_name,
e_config->xsettings.net_theme_name);
else
_e_xsettings_string_set(_setting_theme_name, NULL);
@ -481,7 +481,7 @@ _e_xsettings_theme_set(void)
if (e_config->xsettings.match_e17_theme)
{
const char *file;
file = e_theme_edje_file_get(NULL, "e/desktop/background");
if (file)
{
@ -489,9 +489,9 @@ _e_xsettings_theme_set(void)
{
char buf[PATH_MAX];
e_user_homedir_snprintf(buf, sizeof(buf),
e_user_homedir_snprintf(buf, sizeof(buf),
".themes/%s", _setting_theme);
eio_op = eio_file_direct_stat(buf, _e_xsettings_done_cb,
eio_op = eio_file_direct_stat(buf, _e_xsettings_done_cb,
_e_xsettings_error_cb, NULL);
setting = EINA_TRUE;
return;
@ -546,7 +546,7 @@ _e_xsettings_font_set(void)
eina_strbuf_append_char(buf, ' ');
}
eina_strbuf_append(buf, size_buf);
_e_xsettings_string_set(_setting_font_name,
_e_xsettings_string_set(_setting_font_name,
eina_strbuf_string_get(buf));
eina_strbuf_free(buf);
e_font_properties_free(efp);
@ -564,7 +564,7 @@ static void
_e_xsettings_xft_set(void)
{
if (e_config->scale.use_dpi)
_e_xsettings_int_set(_setting_xft_dpi,
_e_xsettings_int_set(_setting_xft_dpi,
e_config->scale.base_dpi, EINA_TRUE);
else
_e_xsettings_int_set(_setting_xft_dpi, 0, EINA_FALSE);

@ -1265,7 +1265,7 @@ e_zone_useful_geometry_get(E_Zone *zone,
zone->useful_geometry[1].h = zh;
zone->useful_geometry_changed =
!!memcmp(&zone->useful_geometry[0], &zone->useful_geometry[1], sizeof(Eina_Rectangle));
}
zone->useful_geometry_dirty = 0;

Loading…
Cancel
Save