Re: Putting a image on the Gtk::Button..?



On Sat, 2010-01-30 at 13:53 +0100, Murray Cumming wrote:
> On Sat, 2010-01-30 at 13:32 +0100, Armin Burgmeier wrote:
> > I think the "problem" is that on your system the default is to not
> > show
> > images in buttons (this is GNOME's default since 2.28). I guess the
> > image shows up normally if you turn
> > on /desktop/gnome/interface/buttons_have_icons in gconf. 
> 
> I thought that was just for stock items. Is it for any GtkImage in a
> GtkButton in general?

Yes, if you set it with gtk_button_set_image. The docs say:

"Note that it depends on the "gtk-button-images" setting whether the
image will be displayed or not, you don't have to call gtk_widget_show()
on image yourself."

I am not sure what happens if one sets the image directly via the
GtkContainer/GtkBin API.

Armin



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