GNOME Bugzilla – Bug 583396
Missing Gdk::Bitmap::create() to create an empty bitmap
Last modified: 2011-05-31 15:33:16 UTC
In a project of mine, I'm forced to do the following: // There is no Gdk::Bitmap::create() to create an empty bitmap in gdkmm. const Glib::RefPtr<Gdk::Bitmap> bitmap = Glib::RefPtr<Gdk::Bitmap> ::cast_dynamic(Glib::wrap(gdk_pixmap_new(window->gobj(), width, height, 1), false)); I think we should add Gdk::Bitmap::create(drawable, width, height) and probably also the corresponding constructor to gdkmm. Implementation as above.
Gdk::Bitmap was removed on 2010-09-27. http://git.gnome.org/browse/gtkmm/commit/?id=9ab995ff8727d0ba017fc54c08a846fcc6da4abc
In gtkmm 3 both Gdk::Bitmap and Gdk::Pixmap have been removed. In gtkmm 2 Gdk::Pixmap::create(drawable, width, height, 1) can be used as a substitute for the non-existent Gdk::Bitmap::create(drawable, width, height).