Re: suggestion/request: gtk_init returns on failure




Jan Kratochvil <short@ucw.cz> writes:

> > basically, it would be something like this:
> > 
> > 	/*
> > 	 * returns 0 on success, some other value if error
> > 	 */
> > 	int gtk_init(int *argc, char ***argv);
> 
>   Maybe it is a hack, but from yet unreleased gBill under development:

[...]

> static void gdk_recovery(void)
> {
>         dbg(printf("gdk_recovery!!!\n"));
>         if (isinit) {
>                 dbg(printf("already inited/failed\n"));
>                 return;
>                 }
>         longjmp(jumpbuffer,1);
> }

The whole point of posting this is to force me to change
GTK+, right? Nobody would actually do such a thing, would
they? 
                                        Owen



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