GNOME Bugzilla – Bug 467539
Gdk::Drawable::get_size has no const version
Last modified: 2007-11-05 16:16:27 UTC
Unless you have to modify something to get the width an height of the Drawable, shouldn't it be const?
Yes, we should add a new method and deprecate the non-const one. But we are past API freeze now so we will do this after GNOME 2.20 is released. Thanks for the bug report. For now, you can use const_cast<>.
Fixed in svn trunk: 2007-11-05 Murray Cumming <murrayc@murrayc.com> * gdk/src/drawable.hg: Added a const overload of get_size() and deprecated the non-const version. Bug #467539 (Bobby DaSilva).