Re: Gtk::Button with image only
- From: Rob Benton <rob benton conwaycorp net>
- To: bob fis-cal com
- Cc: Gtkmm Mailing List <gtkmm-list gnome org>
- Subject: Re: Gtk::Button with image only
- Date: Wed, 09 Feb 2005 15:54:30 -0600
Bob Caryl wrote:
Why not just create the Gtk::Button object and then add a Gtk::Pixmap to
the button with Gtk::Button::add()?
Bob Caryl
I have tried to add a Gtk::Image, and when I do I get a warning at
runtime saying I can't add a widget b/c the button already has a label.
But Pixmap isn't really a widget, it's part of Gdk.
Part of the problem is I'm designing this through Glade and I haven't
found a good button widget that doesn't have a label on it.
On Wed, 2005-02-09 at 11:51, Rob Benton wrote:
/(I asked this on the glademm list too)
What's the easiest way to get a plain button with an image and no label?
I'm still using Gtkmm 2.4 and I noticed there are a couple new methods
in Gtk::Button in 2.6 for images. I've tried the ToolButton and I can't
seem to set the label to 0 through the set_label method and get that to
compile.
_______________________________________________
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]