Re: Gtk::Entry Icon



On Fri, 2011-03-18 at 11:17 +0100, Krzesimir Nowak wrote:
> Glib::RefPtr<Gdk::Pixbuf>() is an empty refptr, which is a glibmm's
> NULL pointer, so it should unset an icon. 

That's not generally a good idea. gtkmm code might dereference it
without checking. It's simpler to just use the C API.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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