suggestion/request: gtk_init returns on failure



this might be a bit late in the development cycle, but i've run into
a case where this is really needed.  here goes:

currently, if the gtk_init() code path has an error (e.g., gdk_init()
or some other routine fails), gtk exits immediately.  this makes sense
if the application is purely a graphical application.

however, i'm doing some work with the GTK version of vim, and the
behavior needed is that if vim is unable to start the gui, then it
should default and continue with the console version.  in order for
it to do this, vim needs to know if gtk_init() failed for whatever
reason.

basically, it would be something like this:

	/*
	 * returns 0 on success, some other value if error
	 */
	int gtk_init(int *argc, char ***argv);


would this be something that can be squeezed in before 1.2 is released?
--andy



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