Re: Images + labels in buttons

On 11/19/2009 11:39 AM, John Stebbins wrote:
In previous versions of gnome/gtk, both images and labels appeared in buttons. Starting with gnome 2.28, if there is a label, the image will only appear if the gconf property desktop/gnome/interface/buttons_have_icons is True. In my application, the image on some buttons is an important clue to the function of the button. Is there any way to force the image to be displayed regardless of the setting of buttons_have_icons?

If anyone cares, I found this in the GtkSettings documentation. It forces button icons to be enabled:

g_object_set(gtk_settings_get_default(), "gtk-button-images", TRUE, NULL);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]