Re: how to show button stock item without text?
- From: Carlo Wood <carlo alinoe com>
- To: gtkmm-list gnome org
- Subject: Re: how to show button stock item without text?
- Date: Sun, 14 Sep 2008 16:15:51 +0200
On Sun, Sep 14, 2008 at 11:34:36AM +0200, Germán Diago wrote:
> Hello. I would like to show some stock buttons without showing the
> text associated to them in my application.
> Is there a simple way to do it? Or do I have to copy the pixmaps and
> set the image directly? Thanks you.
I'm using Gtk::UIManager (there is an example about how to use
that in the docs), and the crucial point is here:
m_refActionGroup->add(Gtk::Action::create("FileFlip", Gtk::Stock::REFRESH, "Flip"),
which uses the Gtk::Stock::REFRESH icon, but replaces
the text ("Refresh") with "Flip".
for the complete file.
Carlo Wood <carlo alinoe com>
] [Thread Prev