After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 583396 - Missing Gdk::Bitmap::create() to create an empty bitmap
Missing Gdk::Bitmap::create() to create an empty bitmap
Status: RESOLVED OBSOLETE
Product: gtkmm
Classification: Bindings
Component: gdkmm
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-05-21 01:12 UTC by Daniel Elstner
Modified: 2011-05-31 15:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Elstner 2009-05-21 01:12:51 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.
Comment 1 Kjell Ahlstedt 2011-05-02 17:16:32 UTC
Gdk::Bitmap was removed on 2010-09-27.
http://git.gnome.org/browse/gtkmm/commit/?id=9ab995ff8727d0ba017fc54c08a846fcc6da4abc
Comment 2 Kjell Ahlstedt 2011-05-31 15:33:16 UTC
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).