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 467539 - Gdk::Drawable::get_size has no const version
Gdk::Drawable::get_size has no const version
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.10.x
Other All
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-08-17 03:56 UTC by Bobby DaSilva
Modified: 2007-11-05 16:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bobby DaSilva 2007-08-17 03:56:45 UTC
Unless you have to modify something to get the width an height of the Drawable, shouldn't it be const?
Comment 1 Murray Cumming 2007-08-31 09:35:51 UTC
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<>.
Comment 2 Murray Cumming 2007-11-05 16:11:41 UTC
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).