GNOME Bugzilla – Bug 337453
Remove Pixbuf dependency from GObject
Last modified: 2006-07-11 21:41:27 UTC
The org.gnu.glib.GObject presently in libgtk-java contains a reference to org.gnu.gdk.Pixbug, which is getting in the way of moving this class to the glib-java library. One option for dealing with the problem is just to remove the dependency! Can it be done? Searching the code of the java-gnome libraries and the code of significant known users of the bindings turn up zero hits on GObject.setPixbufProperty(String name, Pixbuf value) Therefore I indend to deprecate it immediately, and then remove it altogether when we move the code. [Incidentally, we can always move the method to GtkObject if we want to keep it around for exposure to and use by Widgets, etc.] Anyone who actually has an active use case for this that can't reasonably be satisified if we move this code, please speak up. AfC
We should add @deprecated tags now while we can before the release of 2.8.5 so that future developers are aware of it considering we are going to branch libgtk-java (and others or...?) right after the release of 2.14.1 (libgtk-java 2.8.5) to begin migrating the org.gnu.glib classes over to jg-common/glib-java. org.gnu.glib.GObject -setPixbufProperty(String, Pixbuf) use setJavaObject(String, Object) instead -getPixbufProperty(String) use getJavaObject(String) instead org.gnu.glib.Type -PIXBUF() use org.gnu.gdk.Pixbuf's getType() instead org.gnu.glib.Value -setPixbuf(Pixbuf) use setJavaObject(Object) instead -getPixbuf() use getJavaObject() and cast it accordingly instead
I've just come to the realization that we haven't written Pixbuf's getType() method yet.
A getType() method has been committed into CVS head and the output of Type.PIXBUF().getTypeHandle() matched Pixbuf.getType().getTypeHandle(), so there shouldn't be any incompatibility problems.
The @deprecated tags has been committed to CVS head.
The dependencies has been removed. Please refer to the glib-java (actually named jg-common) CVS module for the updated org.gnu.glib.GObject class.