* Don't display "Press F4 to select alternative start-up and installation

modes" until the initial language menu has been dismissed (LP: #197260).
master
Colin Watson 16 years ago
parent 217084081f
commit aae923888b

2
debian/changelog vendored

@ -3,6 +3,8 @@ gfxboot-theme-ubuntu (0.5.17) UNRELEASED; urgency=low
* Add a header to the language and keymap menus; this seems to make it
feel like less of an accident when the language menu is displayed
automatically on startup.
* Don't display "Press F4 to select alternative start-up and installation
modes" until the initial language menu has been dismissed (LP: #197260).
-- Colin Watson <cjwatson@ubuntu.com> Mon, 07 Apr 2008 12:41:45 +0100

@ -12,6 +12,7 @@
% fallback if there is no "langlist"
/lang.items [ "en" ] def
/lang.names [ "English" ] def
/lang.displayed false def
/.la.language 0 def
/.la.locale 1 def
@ -179,6 +180,22 @@
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Clean up after language menu has been undrawn.
%
% ( ) => ( )
%
/lang.cleanup {
lang.displayed not {
boot.show not {
boot.pos moveto boot.label.len neg 0 rmoveto
txt_modes_help show
} if
/lang.displayed true def
} if
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Show language menu.
%
@ -190,6 +207,7 @@
window.xmenu
dup .xmenu xmenu.lang put
dup .xmenu.update /lang.update put
dup .xmenu.cleanup /lang.cleanup put
dup window.init
window.show
} def

@ -74,8 +74,10 @@
settransparency
boot.ed edit.redraw
} {
boot.label.len neg 0 rmoveto
txt_modes_help show
lang.displayed {
boot.label.len neg 0 rmoveto
txt_modes_help show
} if
} ifelse
} def

@ -96,6 +96,7 @@
/.xmenu.change newfield % like update but the window remains shown
/.xmenu.select newfield
/.xmenu.input newfield
/.xmenu.cleanup newfield
% window types
/t_dialog 100 def
@ -258,6 +259,10 @@
dup .saved.areas get free
dup .saved.areas .undef put
} if
% specific cleanup actions
window.current dup .type get
dup t_xmenu eq { xmenu.cleanup } if
pop
% free input field memory
dup .ed get .undef ne {
dup .ed get 2 get free % background

@ -271,6 +271,16 @@ small_layout {
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Clean up after menu has been undrawn.
%
% ( ) ==> ( )
%
/xmenu.cleanup {
window.current .xmenu.cleanup get dup .undef ne { exec } { pop } ifelse
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Draw xmenu.
%

Loading…
Cancel
Save