I’m using Glade 3.18 to design interfaces that I later load with PyGObject from the gi
module to create a Gtk 3.16 user interface.
To have an example, let’s use the “OK” button. The reference manuals (for both Gtk 3 and GI) state that:
GTK_STOCK_OK
has been deprecated since version 3.10 and should not be used in newly-written code.Do not use an icon. Use label "_OK".
However, setting the label to '_OK'
, either programmatically using button.set_label('_OK')
or in Glade (under the “General” tab, in the “Label with optional image” section), produces a button that displays “_OK” and not the expected “OK” and icon.
So my question is: what is the correct way to implement the proposed replacement for Gtk.STOCK_OK
with PyGObject 3.16?