PDA

View Full Version : gtkmm add image to button.



shador
May 11th, 2007, 11:48 AM
I want to add an image to a button with "void Gtk::Button::set_image (Widget & image)"

But I don't really understand what widget I'm supposed to include in the command. Could anyone maybe give me an example of how it is used?

jamescox84
May 11th, 2007, 03:41 PM
Gtk::Image I think is what your looking for.



Gtk::Image image("filename");
your_button.set_image(image);


I think something like that should work.