Re: [gtk-list] Re: suggestion/request: gtk_init returns on failure



Ideally, Gtk/Gdk should signal an error in this case, and it would be
the responsibility of the programmer to set handlers to the error, and
the default handler should just exit() the application).

This would allow Gtk bindings to guile/Python/C++ to install handlers
that raise an error/exception/whatever in case of error.

Calling exit() behind the application's back is awful behaviour.  It
works for "hello world", but for anything else, it totally sucks.
Yes, even in gtk_init().



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]