Re: how to show button stock item without text?
- From: Paul Davis <paul linuxaudiosystems com>
- To: Germán Diago <germandiago gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: how to show button stock item without text?
- Date: Mon, 15 Sep 2008 07:48:18 +0200
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));
image->show();
your_button->add (*image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]