On 14-06-06 01:35 PM, Thomas Martitz wrote:
Am 06.06.2014 16:24, schrieb Yosef Or Boczko:
I think it better to port to GAction instead of GtkAction (GtkAction has been deprecated since version 3.10 and will be removed in GTK+ 4), so it will be ease to port geany to GTK+ 4 in the future.
We have elaborated GAction. The problem is that it is only recent in Glib/Gtk versions. Geany is committed to support at least the last gtk2 release for some time to come.
Also, unless I missed it in the docs, GAction/GSimpleAction do not appear to support associating labels, tooltips, icons, etc with the action so would require duplicating these all over the place (similar to the current way we do it).
I think the transition from GtkAction to GAction isn't actually that terrible (mostly search & replace) so we can do it at some point in the future.
As GtkAction is so useful and what it does is quite simple, IMO we could also create our own replacement class for it in the future, or just take the relevant source files from the GTK+ tree.
Cheers, Matthew Brush