Re: GTK3 branch?

Dominique Dumont <[email protected]> Wed, 29 Dec 2021 15:01:14 +0100
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <4928263.SEo1F12hLK@ylum>
On Wednesday, 29 December 2021 13:21:02 CET Detlef Graef wrote:
> The biggest concerns I have are regarding migration from GtkUIManager to
> GtkBuilder.
> 
> https://developer-old.gnome.org/gtk3/stable/GtkUIManager.html
> 
> "GtkUIManager is deprecated since GTK+ 3.10. To construct user
> interfaces from XML definitions, you should use GtkBuilder, GMenuModel,
> et al. To work with actions, use GAction, GtkActionable et al. These
> newer classes support richer functionality and integration with various
> desktop shells. It should be possible to migrate most/all functionality
> from GtkUIManager."

I guess that there are 2 possible ways:
- port C++ calls one by one (and move some of them in the XML expected by 
GtkBuilder ?)
- re-create the UI with glade and merge the generated UI with current code

I really don't know which way is better.

> The worst case would be if deprecated API calls are removed from a
> current GTK3 lib version. I don't know how likely this is.

I'd say we're fine with Gtk3. But probably not for Gtk4.

HTH