Lire interface bug

Wytze van der Raay wytze at logreport.org
Fri Jan 6 16:32:48 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12.10.2005 11:05, Arunas Pranckevicius wrote:

> After trying to crate new DLF store with Lire, i got this error:
> 
> Your screen is currently too small for this application.
> Resize the screen and restart the application.
> Press <CTRL+C> to exit...
> 
> The strange part is - my X terminal runs in 1280x1024 fullscreen mode... :-)
> 
> Lire version - lire-2.0.1-1mdk (Mandrake Linux 10.2)

I've seen this error message as well :-(
Apparently, it is not only produced when your screen is really too small
to fit in the required windows, but also when your screen is *larger* than
the Lire::UI software is willing to handle. In the Lire user manual I've
read:

   It is possible that you encounter messages stating that your screen is
   too small to use the application. The message also informs you to stop
   the application and resize the terminal before restarting. You do not
   need to stop the application. If you are using a resizable terminal
   (like an xterm for example), simply resize the terminal until the
   messages disappear.

and indeed, the work-around given fixes the problem: just resize your xterm
when the "too small" message appears (e.g. by trying something like
80 columns x 44 lines), the error message will disappear, and you will see
4 subwindows showing up (Import Jobs, Report Jobs, Report Configurations
and DLF Streams).

My suspicion is that this weird behaviour is caused by a bug in the code
in .../Lire/UI/CompoundWidget.pm, where it says:

sub layout_value_widgets {
    ...
    my $left = $self->shown_components();
    if ( $left * 2 - 1> $self->canvasheight() ) {
        $Curses::UI::screen_too_small++;
        return;
    }

but I don't know enough about the inner workings of Lire::UI and Curses:UI
to be sure. Perhaps someone more knowledgeable in this area can suggest
a fix.

Regards,
Wytze van der Raay
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDvo2fqs+zhiEbbu8RAua8AKDkkVRX7Hs1OwXoalV8L+TotrKGuQCfa+Rh
KqVEPqIAWqSuV8Oj/xb2Rcc=
=+6Fq
-----END PGP SIGNATURE-----

-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list