static grub_gfxmenu_view_t cached_view;
-static void
+static void
grub_gfxmenu_viewer_fini (void *data __attribute__ ((unused)))
{
}
circprog_set_state (void *vself, int visible, int start,
int current, int end)
{
- circular_progress_t self = vself;
+ circular_progress_t self = vself;
self->visible = visible;
self->start = start;
self->value = current;
label_set_state (void *vself, int visible, int start __attribute__ ((unused)),
int current, int end __attribute__ ((unused)))
{
- grub_gui_label_t self = vself;
+ grub_gui_label_t self = vself;
self->value = -current;
self->visible = visible;
grub_free (self->text);
int boxpad = self->item_padding;
int item_vspace = self->item_spacing;
int item_height = self->item_height;
-
+
grub_gfxmenu_box_t box = self->menu_box;
int box_top_pad = box->get_top_pad (box);
int box_bottom_pad = box->get_bottom_pad (box);
grub_video_get_viewport (&oviewport.x, &oviewport.y,
&oviewport.width, &oviewport.height);
- grub_video_set_viewport (oviewport.x + boxpad,
+ grub_video_set_viewport (oviewport.x + boxpad,
oviewport.y + boxpad,
oviewport.width - 2 * boxpad,
oviewport.height - 2 * boxpad);
progress_bar_set_state (void *vself, int visible, int start,
int current, int end)
{
- grub_gui_progress_bar_t self = vself;
+ grub_gui_progress_bar_t self = vself;
self->visible = visible;
self->start = start;
self->value = current;
{
grub_free (self->template);
if (grub_strcmp (value, "@TIMEOUT_NOTIFICATION_LONG@") == 0)
- value
+ value
= _("The highlighted entry will be executed automatically in %ds.");
else if (grub_strcmp (value, "@TIMEOUT_NOTIFICATION_MIDDLE@") == 0)
/* TRANSLATORS: 's' stands for seconds.
skip_whitespace (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. */
/* Skip opening quotation mark. */
read_char (p);
}
}
-void
+void
grub_gfxmenu_print_timeout (int timeout, void *data)
{
struct grub_gfxmenu_view *view = data;
redraw_timeouts (view);
}
-void
+void
grub_gfxmenu_clear_timeout (void *data)
{
struct grub_gfxmenu_view *view = data;
}
}
-void
+void
grub_gfxmenu_set_chosen_entry (int entry, void *data)
{
grub_gfxmenu_view_t view = data;
term_box->set_content_size (term_box, term_view->terminal_rect.width,
term_view->terminal_rect.height);
-
+
term_box->draw (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));