Re: (gnome gtk) behavior when opening the display fails

Greg Troxel <[email protected]> Mon, 01 Feb 2010 07:46:09 -0500
Newsgroups gmane.lisp.guile.gtk
Message-ID <[email protected]>
gregory benison <[email protected]> writes:

> i.e. if the display can't be opened for some reason, trying to load
> (gnome gtk) causes the program simply to exit... which I suppose is
> correct behavior, but might it be nice to have a way of catching the
> error so that a program could, for example, print out a "hey, I can't
> open any displays, what should I do" type of message?

It's not the right behavior.  Displaying something is only one aspect of
behavior, and the program shouldn't even try to open the display on
use-modules.  It should only open it when needed, and then just throw an
error when an open fails during use.

_______________________________________________
guile-gtk-general mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-gtk-general
signature.asc (application/pgp-signature, 194 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (NetBSD)

iEYEARECAAYFAktmzREACgkQ+vesoDJhHiUS5QCfTkPQLHzGd9H9fq6yq4i4mB9L
3tQAnArG5cEpFeEwWN0W5+CoCiZlE+zY
=X8Wf
-----END PGP SIGNATURE-----