gfxmenu: Remove trailing whitespaces

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Elyes Haouas authored and Daniel Kiper committed 2022-03-14 15:46:18 +01:00
1 parent 509ccd22fb
commit a2f71c73b0
7 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
static grub_gfxmenu_view_t cached_view; static grub_gfxmenu_view_t cached_view;
static void static void
grub_gfxmenu_viewer_fini (void *data __attribute__ ((unused))) grub_gfxmenu_viewer_fini (void *data __attribute__ ((unused)))
{ {
} }
+1 -1
View File
@@ -220,7 +220,7 @@ static void
circprog_set_state (void *vself, int visible, int start, circprog_set_state (void *vself, int visible, int start,
int current, int end) int current, int end)
{ {
circular_progress_t self = vself; circular_progress_t self = vself;
self->visible = visible; self->visible = visible;
self->start = start; self->start = start;
self->value = current; self->value = current;
+1 -1
View File
@@ -160,7 +160,7 @@ static void
label_set_state (void *vself, int visible, int start __attribute__ ((unused)), label_set_state (void *vself, int visible, int start __attribute__ ((unused)),
int current, int end __attribute__ ((unused))) int current, int end __attribute__ ((unused)))
{ {
grub_gui_label_t self = vself; grub_gui_label_t self = vself;
self->value = -current; self->value = -current;
self->visible = visible; self->visible = visible;
grub_free (self->text); grub_free (self->text);
+2 -2
View File
@@ -118,7 +118,7 @@ get_num_shown_items (list_impl_t self)
int boxpad = self->item_padding; int boxpad = self->item_padding;
int item_vspace = self->item_spacing; int item_vspace = self->item_spacing;
int item_height = self->item_height; int item_height = self->item_height;
grub_gfxmenu_box_t box = self->menu_box; grub_gfxmenu_box_t box = self->menu_box;
int box_top_pad = box->get_top_pad (box); int box_top_pad = box->get_top_pad (box);
int box_bottom_pad = box->get_bottom_pad (box); int box_bottom_pad = box->get_bottom_pad (box);
@@ -353,7 +353,7 @@ draw_menu (list_impl_t self, int num_shown_items)
grub_video_get_viewport (&oviewport.x, &oviewport.y, grub_video_get_viewport (&oviewport.x, &oviewport.y,
&oviewport.width, &oviewport.height); &oviewport.width, &oviewport.height);
grub_video_set_viewport (oviewport.x + boxpad, grub_video_set_viewport (oviewport.x + boxpad,
oviewport.y + boxpad, oviewport.y + boxpad,
oviewport.width - 2 * boxpad, oviewport.width - 2 * boxpad,
oviewport.height - 2 * boxpad); oviewport.height - 2 * boxpad);
+2 -2
View File
@@ -320,7 +320,7 @@ static void
progress_bar_set_state (void *vself, int visible, int start, progress_bar_set_state (void *vself, int visible, int start,
int current, int end) int current, int end)
{ {
grub_gui_progress_bar_t self = vself; grub_gui_progress_bar_t self = vself;
self->visible = visible; self->visible = visible;
self->start = start; self->start = start;
self->value = current; self->value = current;
@@ -335,7 +335,7 @@ progress_bar_set_property (void *vself, const char *name, const char *value)
{ {
grub_free (self->template); grub_free (self->template);
if (grub_strcmp (value, "@TIMEOUT_NOTIFICATION_LONG@") == 0) if (grub_strcmp (value, "@TIMEOUT_NOTIFICATION_LONG@") == 0)
value value
= _("The highlighted entry will be executed automatically in %ds."); = _("The highlighted entry will be executed automatically in %ds.");
else if (grub_strcmp (value, "@TIMEOUT_NOTIFICATION_MIDDLE@") == 0) else if (grub_strcmp (value, "@TIMEOUT_NOTIFICATION_MIDDLE@") == 0)
/* TRANSLATORS: 's' stands for seconds. /* TRANSLATORS: 's' stands for seconds.
+1 -1
View File
@@ -419,7 +419,7 @@ read_expression (struct parsebuf *p)
skip_whitespace (p); skip_whitespace (p);
if (peek_char (p) == '"') if (peek_char (p) == '"')
{ {
/* Read as a quoted string. /* Read as a quoted string.
The quotation marks are not included in the expression value. */ The quotation marks are not included in the expression value. */
/* Skip opening quotation mark. */ /* Skip opening quotation mark. */
read_char (p); read_char (p);
+4 -4
View File
@@ -218,7 +218,7 @@ redraw_timeouts (struct grub_gfxmenu_view *view)
} }
} }
void void
grub_gfxmenu_print_timeout (int timeout, void *data) grub_gfxmenu_print_timeout (int timeout, void *data)
{ {
struct grub_gfxmenu_view *view = data; struct grub_gfxmenu_view *view = data;
@@ -233,7 +233,7 @@ grub_gfxmenu_print_timeout (int timeout, void *data)
redraw_timeouts (view); redraw_timeouts (view);
} }
void void
grub_gfxmenu_clear_timeout (void *data) grub_gfxmenu_clear_timeout (void *data)
{ {
struct grub_gfxmenu_view *view = data; struct grub_gfxmenu_view *view = data;
@@ -401,7 +401,7 @@ grub_gfxmenu_redraw_menu (grub_gfxmenu_view_t view)
} }
} }
void void
grub_gfxmenu_set_chosen_entry (int entry, void *data) grub_gfxmenu_set_chosen_entry (int entry, void *data)
{ {
grub_gfxmenu_view_t view = data; grub_gfxmenu_view_t view = data;
@@ -423,7 +423,7 @@ grub_gfxmenu_draw_terminal_box (void)
term_box->set_content_size (term_box, term_view->terminal_rect.width, term_box->set_content_size (term_box, term_view->terminal_rect.width,
term_view->terminal_rect.height); term_view->terminal_rect.height);
term_box->draw (term_box, term_box->draw (term_box,
term_view->terminal_rect.x - term_box->get_left_pad (term_box), term_view->terminal_rect.x - term_box->get_left_pad (term_box),
term_view->terminal_rect.y - term_box->get_top_pad (term_box)); term_view->terminal_rect.y - term_box->get_top_pad (term_box));