Re: [gtkmm] Adding a stock pixmap to a Gtk::ToggleButton



this:

my_toggle_button.add( * manage( new Gtk::Image(Gtk::Stock::FIND,
Gtk::ICON_SIZE_BUTTON) ) );

Barnaby

On Thu, Aug 07, 2003 at 11:41:15PM +0100, Matthew Walton wrote:
> I've been struggling with this for a while now, trying various variants
> on making a Gtk::Image from the stock item and attempting to get it into
> the ToggleButton. This doesn't work in a variety of
> not-very-entertaining ways, including segfaulting and apparently
> completely failing to get the stock item image into the Gtk::Image in
> the first place. Therefore I have to ask: how do I get a stock pixmap
> onto a Gtk::ToggleButton?
> 
> The absence of a ToggleButton constructor taking a StockID is a serious
> pain here.
> 
> Thanks
> -- 
> Matthew Walton <matthew alledora co uk>
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 



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