* grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove

unused show_text member.
	* docs/grub.texi: Document "text" property.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-10 19:46:46 +01:00
parent 922aabf34b
commit 14361ee8aa
3 changed files with 12 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
unused show_text member.
* docs/grub.texi: Document "text" property.
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format

View file

@ -1595,11 +1595,12 @@ the id ``__timeout__''. This indicates to GRUB that the progress bar should
be updated as time passes, and it should be made invisible if the countdown to
automatic boot is interrupted by the user.
Progress bars may optionally have text displayed on them. This is controlled
through the ``show_text'' property, which can be set to either ``true'' or
``false'' to control whether text is displayed. When GRUB is counting down to
automatic boot, the text informs the user of the number of seconds remaining.
Progress bars may optionally have text displayed on them. This text is
controlled by variable ``text'' which contains a printf template with the
only argument %d is the number of seconds remaining. Additionally special
values ``@@TIMEOUT_NOTIFICATION_SHORT@@'', ``@@TIMEOUT_NOTIFICATION_MIDDLE@@'',
``@@TIMEOUT_NOTIFICATION_LONG@@'' are replaced with standard and translated
templates.
@subsection Circular Progress Indicator

View file

@ -37,7 +37,6 @@ struct grub_gui_progress_bar
int start;
int end;
int value;
int show_text;
char *template;
grub_font_t font;
grub_video_rgba_color_t text_color;