On Thu, Mar 21, 2002 at 04:49:50PM +0100, Pixel wrote:
> Keld J�rn Simonsen <[EMAIL PROTECTED]> writes:
>
> > > > 8.2 gold wish: when selecting in drakx which GUI to use
> > > > (kde/gnome etc) and whether to log in automatically
> > > > the question on whether to autologin comes before the
> > > > box to cose the GUI. I suggest to exchange these two
> > > > items so that it is clearer what you are answering.
> > > > I have mistakenly said yes here because I thought I chose
> > > > kde, while I was in reality doing autologin, which
> > > > is a security risk.
>
> [...]
>
> > After all, it is probably only a simple move of some lines in the code,
> > and that could be done faster than the combined time we have spent
> > on the question here.
>
> it's not that way (otherwise it would already be done, you're the second one
> to ask this). the code is:
>
> $in->ask_from_(
> { title => _("Autologin"),
> messages => _("I can set up your computer to automatically
>log on one user.
> Do you want to use this feature?"),
> ok => _("Yes"),
> cancel => _("No") },
> [ { label => _("Choose the default user:"), val =>
>\$o->{autologin}, list => \@users },
> { label => _("Choose the window manager to run:"), val =>
>\$o->{desktop}, list => \@wm } ]
> )
>
> I don't want to add the ability to have the Yes/No before the entries. At
> least not if it's not *really* needed (=> more than one dialog box)
I dont know your ask_from_ API (or maybe struct?) how flexible it is,
but if this is the general API used everywhere for user input in drakx
there should be some control in what order labels and questions
be presented. I would move the last line up front, something like:
$in->ask_from_(
{ title => _("Autologin"),
{ label => _("Choose the window manager to run:"), val =>
\$o->{desktop}, list => \@wm },
messages => _("I can set up your computer to automatically log on one
user.
Do you want to use this feature?"),
ok => _("Yes"),
cancel => _("No") },
{ label => _("Choose the default user:"), val => \$o->{autologin},
list => \@users }
> )
Kind regards
keld