[Users] a way to do in GTK+3 the same as the former "gtk-button-images = 0" that was in GTK+2 ?

Jonathan Boeing jonathan at claws-mail.org
Sun Aug 8 03:30:51 CEST 2021


On Sat, 7 Aug 2021 21:28:58 +0300
Cristian Secară <liste at secarica.ro> wrote:

> În data de Sat, 7 Aug 2021 21:27:08 +0300, Cristian Secară a scris:
> 
> > Is there a .css way to show images on standard buttons, i.e. OK,
> > Cancel etc., the same as it was done via "gtk-button-images = 0"
> > from gtkrc ?  
> 
> The former "gtk-button-images = 1" actually

From https://docs.gtk.org/gtk3/property.Settings.gtk-button-images.html:

"This setting is deprecated. Application developers control whether a
button should show an icon or not, on a per-button basis. If a
GtkButton should show an icon, use the GtkButton:always-show-image
property of GtkButton, and pack a GtkImage inside the GtkButton."

Looking at different buttons through GTK Inspector shows that some
have images, and some don't.  The Apply/OK/Cancel buttons, for
instance, do not.  It sounds like the images would need to be added in
the Claws code.

We do set gtk-button-images=true in the default Windows settings.ini,
and that does enable the images where they've been set (Configuration
-> Edit Accounts -> Up/Down buttons, for example).

Regards,

Jonathan


More information about the Users mailing list