mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00

I only translated the undo menu into GtkBuilder's .ui format for now. The only missing part is that the icon is now shown. Note that in various parts, I don't rely anymore on a bogus menu action (i.e. "undo-popup" action in this case) which does nothing but has an associated label and icon. I simply add the label and icon as submenu attribute directly in the .ui file, which is translatable and whose strings should be parsed by gettext. Eventually I'll just get rid of all the various "*-popup" or "*-menu" bogus actions.
13 lines
498 B
XML
13 lines
498 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<interface>
|
|
<menu id="/undo-popup">
|
|
<submenu>
|
|
<attribute name="label" translatable="yes" context="edit-action">Undo History Menu</attribute>
|
|
<attribute name="icon">edit-undo</attribute>
|
|
<item><attribute name="action">app.edit-undo</attribute></item>
|
|
<item><attribute name="action">app.edit-redo</attribute></item>
|
|
<item><attribute name="action">app.edit-undo-clear</attribute></item>
|
|
</submenu>
|
|
</menu>
|
|
</interface>
|