Re: [Vala] Setting image on a button?



Ah, maybe I should've been more clear. It works if the image is the only
thing on the button, but I want to have both text and the image, and it
doesn't work if the button already has text on it (even if I use
image.show()).

On Tue, May 17, 2011 at 2:31 AM, Nicolas Joseph
<nicolas joseph valaide org>wrote:

Hello,

Le 16/05/11 à 18:33, Damien Radtke a écrit :
I'm trying to add an image to a button, but it doesn't display. I'm
loading
one of the stock images, and can get it to display fine on its own, but
it
doesn't show after placed on a button with set_image(). I've also looked
into the "gtk-button-images" setting to see if it's disabled, but
Gtk.Settings doesn't seem to support that property.

Using vala 0.11.5.

You can see an example here:
http://bazaar.launchpad.net/~valide/valide/trunk/view/head:/libvalide/utils.vala#L320

You probably forget image.show()

_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list



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