Re: Gtk::Button set_image()/ how can I put a Gdk::DrawingArea into the same window as other widgets?

2009-05-29 Thread Murray Cumming
On Thu, 2009-05-28 at 17:35 -0700, Ian Martin wrote: > On an unrelated topic, can a Gdk::DrawingArea be put inside another > widget? For example, the clock in the docs works fine as a standalone > program. If I try to put it inside a Frame, the program fails to draw > the clock. You need to show

Re: Gtk::Button set_image()/ how can I put a Gdk::DrawingArea into the same window as other widgets?

2009-05-28 Thread Ian Martin
>Well, I don't think there is a ready-made method for it. Most of the >time, you'd just destroy the HBox. You can empty a box using the boxlist. It's a STL type list attached to the box that contains its widgets, with the expected methods. Gtk::Box_Helpers::BoxList PClist = m_PC_data.children()

Re: Gtk::Button set_image()

2009-05-28 Thread Caroline Kierstead
Daniel Elstner wrote: That's because of the static class data here: const Glib::RefPtr DeckGUI::deck[ACE+1][SPADE+1] = { // Set up NINE of {DIAMOND,CLUB,HEART,SPADE} {Gdk::Pixbuf::create_from_file("pixmaps/card_0_0.xpm"), Gdk::Pixbuf::create_from_file("pixmaps/card_0_1.xpm"), [...] Gdk::

Re: Gtk::Button set_image()

2009-05-28 Thread Murray Cumming
On Thu, 2009-05-28 at 19:21 +0200, Daniel Elstner wrote: > > Is there a spot with good documentation on the memory manager? > There's not much > > in the reference manual. How does this interact with using the > remove() call on > > a container? > > If you remove a managed widget from a containe

Re: Gtk::Button set_image()

2009-05-28 Thread Daniel Elstner
Hi, Am Donnerstag, den 28.05.2009, 12:30 -0400 schrieb Caroline Kierstead: > Is this example-pixbuf.cc? I'm on a Mac, so finding the files that were > installed takes quite a bit of digging. I may be better off just dowloading > the > tar ball to unpack the examples, I guess. The standalone v

Re: Gtk::Button set_image()

2009-05-28 Thread Daniel Elstner
Hi, Am Donnerstag, den 28.05.2009, 11:13 -0400 schrieb Caroline Kierstead: > Sorry to bother you again, but I hit another bizarre stumbling block. > > > const Glib::RefPtr > > pixbuf = Gdk::Pixbuf::create_from_file("filename"); > > // ... > > > > I managed to get this to work if

Re: Gtk::Button set_image()

2009-05-27 Thread Daniel Elstner
Am Mittwoch, den 27.05.2009, 13:35 -0400 schrieb Caroline Kierstead: > Daniel Elstner wrote: > > Am Dienstag, den 26.05.2009, 18:05 -0400 schrieb Caroline Kierstead: > >> Does anybody know why, if I pass in the same dereferenced pointer to a > >> Gtk::Image to multiple Gtk::Button objects using se

Re: Gtk::Button set_image()

2009-05-27 Thread Daniel Elstner
Am Dienstag, den 26.05.2009, 18:05 -0400 schrieb Caroline Kierstead: > Does anybody know why, if I pass in the same dereferenced pointer to a > Gtk::Image to multiple Gtk::Button objects using set_image(), only the image > in > the most recent one is displayed? I didn't see a note about it in th

Re: Gtk::Button set_image()

2009-05-27 Thread Jonathon Jongsma
Caroline Kierstead wrote: Does anybody know why, if I pass in the same dereferenced pointer to a Gtk::Image to multiple Gtk::Button objects using set_image(), only the image in the most recent one is displayed? I didn't see a note about it in the reference manual, though I may have missed it.

Gtk::Button set_image()

2009-05-27 Thread Caroline Kierstead
Does anybody know why, if I pass in the same dereferenced pointer to a Gtk::Image to multiple Gtk::Button objects using set_image(), only the image in the most recent one is displayed? I didn't see a note about it in the reference manual, though I may have missed it. Thanks! -- --- Caroline Ki

Re: Gtk::Button::set_image(...)

2005-08-01 Thread Antonio Coralles
Antonio Coralles wrote: [Repost] When i create a Gtk::Button object with its default constructor, and then add a image to it, using set_image(...), the image doesn't appear. But when i create the button with ustring(""), the image shows up. Is there a particular reason for this behavour, or is i

Gtk::Button::set_image(...)

2005-07-14 Thread Antonio Coralles
When i create a Gtk::Button object with its default constructor, and then add a image to it, using set_image(...), the image doesn't appear. But when i create the button with ustring(""), the image shows up. Is there a particular reason for this behavour, or is it possible that i'm doing something