[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: Images + labels in buttons
From:       John Stebbins <stebbins () jetheaddev ! com>
Date:       2009-11-20 1:07:28
Message-ID: 4B05EBD0.4090403 () jetheaddev ! com
[Download RAW message or body]

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_type_class_unref(g_type_class_ref(GTK_TYPE_BUTTON));
     g_object_set(gtk_settings_get_default(), "gtk-button-images", TRUE, 
NULL);

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic