Le 07/06/2014 02:01, Matthew Brush a écrit :
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).
The action not having the UI details may not be the worst thing ever, basically actions ways to interact with the application ("commands" if you will), not necessarily a UI element.
But yeah, defining the action appearance and using this all over the place is super handy.