org.gnu.gtk

Class GtkObject

public class GtkObject extends GObject

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.GtkObject. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

This is the base class of all widgets and a few non-widget objects.
Method Summary
voiddestroy()
This method is now a no-op.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidsink()
Removes the floating reference from a GtkObject, if it exists.

Method Detail

destroy

public void destroy()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

This method is now a no-op. Native resources for a specific java object are automatically reclaimed during the finalization of that object.

Note: In some rare cases, subclasses may need an explicit call to destroy in order to release their native resources. These classes may override this method to provide this functionality.

Currently, the only example of this is Window. See its documentation for more details.

See Also: destroy

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

sink

public void sink()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Removes the floating reference from a GtkObject, if it exists. Otherwise does nothing.