* 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> 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format * 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 be updated as time passes, and it should be made invisible if the countdown to
automatic boot is interrupted by the user. automatic boot is interrupted by the user.
Progress bars may optionally have text displayed on them. This is controlled Progress bars may optionally have text displayed on them. This text is
through the ``show_text'' property, which can be set to either ``true'' or controlled by variable ``text'' which contains a printf template with the
``false'' to control whether text is displayed. When GRUB is counting down to only argument %d is the number of seconds remaining. Additionally special
automatic boot, the text informs the user of the number of seconds remaining. values ``@@TIMEOUT_NOTIFICATION_SHORT@@'', ``@@TIMEOUT_NOTIFICATION_MIDDLE@@'',
``@@TIMEOUT_NOTIFICATION_LONG@@'' are replaced with standard and translated
templates.
@subsection Circular Progress Indicator @subsection Circular Progress Indicator

View file

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