Re: how to show button stock item without text?

On Sun, 2008-09-14 at 23:14 +0200, Germán Diago wrote:
> Sorry, I didn't express myself clearly. I've got a Gtk::Button, and if
> I put a Gtk::BuiltinStockID as a parameter,
> it appears the text and the image. I want to show just the image,
> without the text. Is there a simple way?
> Or maybe I have to copy the icons in my own directory and load the
> images with set_image? Thank you

its pretty easy.

	Widget* image;

	image = manage (new Image (Stock::ADD, ICON_SIZE_BUTTON));
	your_button->add (*image);

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