GNOME Bugzilla – Bug 320163
Gtk.initCheck which does not terminate the app if fails missing
Last modified: 2009-08-15 18:40:50 UTC
Gtk.initCheck method gives the possibility to handle gtk init errors in form of a java exception.
Created attachment 54042 [details] [review] add a Gtk.initCheck method
Thanks for the patch, but there are a couple of things that I believe could be improved. First of all, I'd prefer to throw the exception in the java side of the code. Exception handling in JNI is much more cumbersome and there's no need to use it in this particular case. I would also prefer if initCheck and init share some of the common code. Easiest way to achieve this is to probably have a private helper method.
In addition, the access modifier for the exception class cannot be private if we are to throw the exception from the java side.
Created attachment 54385 [details] [review] add Gtk.initCheck method - second try, based on comments from Ismael Juma
Thanks for the patch. Committed to CVS HEAD.