GNOME Bugzilla – Bug 525967
Documentation for Gdk::Window::set_back_pixmap not customized for gtkmm
Last modified: 2015-11-25 16:15:30 UTC
The documentation says "A background pixmap of 0 means that the window will have no background. " But this doesn't really apply since the parameter is a RefPtr and not a raw pointer.
We would usually add an overload for this, such as unset_back_pixmap(). We can do that in svn trunk. In the meantime, people should use gdk_window_set_back_pixmap(window->gobj(), NULL, parent_relative)
I'm fairly sure it will work to just pass an empty refptr to this function since internally it uses Glib::unwrap(pixmap), which does a check to see if the refptr is valid and if not, returns 0, else returns refptr->gobj()
That's lucky.
yes, it would definitely be more natural to have an unset_* method, so we should probably add that anyway, even if the thing I mentioned above does actually work.
Fixed in svn trunk: 2008-04-29 Murray Cumming <murrayc@murrayc.com> * gdk/src/window.ccg: * gdk/src/window.hg: Added unset_back_pixmap(). * gdk/src/gdk_docs_override.xml: Changed the back_pixmap() documentation to not mention NULL, and to refer to unset_back_pixmap(). This fixes bug #525967 (Jonathon Jongsma).