Re: how to show button stock item without text?

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"),
      sigc::mem_fun(*this, &GtkTest::on_menu_file_flip));

which uses the Gtk::Stock::REFRESH icon, but replaces
the text ("Refresh") with "Flip".

for the complete file.

Carlo Wood <carlo alinoe com>

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