Re: [gtkmm] Packing a Gdk::Pixbuf into a Gtk::Box



On Thu, 2004-05-06 at 13:41 -0600, Hyrum Wright wrote:
> I am attempting to put an image in the form of a Pixbuf into an HBox 
> that lives on a Button.  The only problem is that all Pixbuf creation 
> functions return RefPtr's, and the pack_start function on the box 
> requires a pass by reference, not pointer of the item to be packed.

More importantly, it wants a reference to a _Gtk::Widget_. a Gdk::Pixbuf
is not a Gtk::Widget. Maybe you want to use a Gtk::Image.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com





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