This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

Moving libglade to GTK+

See Also LibgladeWithGobjects

This page is for planning out the move of libglade into GTK+. The following features are planned for the GTK+-2.8 release:

The following features are planned for post GTK+-2.8. We want to make sure we can add them, but may not implement them at this time:

Libglade Custom Handlers and Extension Modules

Outside the core of libglade, there is a fair bit of code designed to allow libglade to help libglade inspect widgets, and patch over missing GObject properties. This code is either inside libglade itself, or in extension modules provided by other libraries.

The extension modules do the following:

Ideally, I'd like to get rid of the concept of libglade extension modules, so we'd need to find some place to put this code. If libglade functionality is part of GTK, then it seems sensible to add it directly to the widgets themselves.

Perhaps overriding the "new" function could be removed entirely, if all widgets can be constructed from properties ...

Stuff in Libglade That Could Be Killed

Libglade's Future

Even if this functionality does get added to GTK, the libglade API will have to remain at least until 3.0. If full compatibility is preserved, libglade could be converted to a wrapper around the GTK functionality. If the GTK version is not fully compatible, libglade could remain as it is now, but be considered a deprecated API.

The first option would impose all the legacy requirements of libglade onto GTK, but would mean that everyone is using the same code. The second option would give GTK more room to improve, since it wouldn't need full backward compatibility (eg. handling pre-2.4 GtkToolbars in glade files).


2024-10-23 10:59