Open nekohayo opened 1 year ago
Hello,
The last time I looked to port YOGA Image Optimizer to GTK4, the tools were not ready (it was about one or two years ago). Especially Glade that only supports GTK3, and its replacement, Cambalache, that was very very new. Gvsbuild had no GTK4 support neither at thas time.
I have to look again to see how everything evolved now. I will try to do a macOS port of the App soon, so I may work on the GTK4 port right after :)
Thank you for all the links
I had a quick look. It seems there is not too much deprecated properties used:
$ export G_ENABLE_DIAGNOSTIC=1
$ python -m yoga_image_optimizer
/.../yoga-image-optimizer.git/yoga_image_optimizer/main_window.py:40: Warning: The property GtkWidget:margin-left is deprecated and shouldn't be used anymore. It will be removed in a future version.
self._builder.add_from_file(data_helpers.find_data_path("ui/main-window.glade"))
/.../yoga-image-optimizer.git/yoga_image_optimizer/main_window.py:40: Warning: The property GtkWidget:margin-right is deprecated and shouldn't be used anymore. It will be removed in a future version.
self._builder.add_from_file(data_helpers.find_data_path("ui/main-window.glade"))
/.../yoga-image-optimizer.git/yoga_image_optimizer/main_window.py:40: Warning: The property GtkWidget:double-buffered is deprecated and shouldn't be used anymore. It will be removed in a future version.
self._builder.add_from_file(data_helpers.find_data_path("ui/main-window.glade"))
/.../yoga-image-optimizer.git/yoga_image_optimizer/settings_window.py:31: Warning: The property GtkAlignment:top-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
self._builder.add_from_file(
But we use some other deprecated/removed things like Gdk.Screen
.
The UI files will require some manual work to convert them (it seems there is no automatic migration tool for them).
It seems Gvsbuild now support GTK 4 (but I not tested), and Cambalache seems more complete than the next time I looked at it :)
I suppose you're already aware of all these things, but at least this is a ticket for tracking this, and maybe in case someone wants to help with this...
It would be a good thing to: