After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337453 - Remove Pixbuf dependency from GObject
Remove Pixbuf dependency from GObject
Status: RESOLVED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other Linux
: Normal major
: ---
Assigned To: java-gnome bindings maintainers
java-gnome bindings maintainers
Depends on:
Blocks: 337451
 
 
Reported: 2006-04-06 02:43 UTC by Andrew Cowie
Modified: 2006-07-11 21:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew Cowie 2006-04-06 02:43:50 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
Comment 1 Remy Suen 2006-05-26 20:25:32 UTC
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
Comment 2 Remy Suen 2006-05-26 20:31:51 UTC
I've just come to the realization that we haven't written Pixbuf's getType() method yet.
Comment 3 Remy Suen 2006-05-26 21:53:27 UTC
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.
Comment 4 Remy Suen 2006-05-28 23:32:12 UTC
The @deprecated tags has been committed to CVS head.
Comment 5 Remy Suen 2006-07-11 21:41:27 UTC
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.