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 486104 - Make GTKMM_DISABLE_DEPRECATED available to non-library code
Make GTKMM_DISABLE_DEPRECATED available to non-library code
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on: 486102
Blocks:
 
 
Reported: 2007-10-12 18:23 UTC by Armin Burgmeier
Modified: 2007-10-12 20:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (12.70 KB, patch)
2007-10-12 18:25 UTC, Armin Burgmeier
committed Details | Review

Description Armin Burgmeier 2007-10-12 18:23:07 UTC
API users cannot determine (at compile time) whether deprecated API is enabled in gtkmm or not. GTKMM_DISABLE_DEPRECATED should be exposed in gtkmmconfig.h.
Comment 1 Armin Burgmeier 2007-10-12 18:25:43 UTC
Created attachment 97133 [details] [review]
Proposed patch

This patch adds GDKMM_DISABLE_DEPRECATED and GTKMM_DISABLE_DEPRECATED to gdkmmconfig.h or gtkmmconfig.h, respectively. It also makes sure these files are included in headers that need the defines. For this to work the patch from bug #486102 is required, though. Finally, it fixes a build problem in gdkmm/pixbuf.cc when deprecated API is disabled.
Comment 2 Murray Cumming 2007-10-12 19:29:18 UTC
Where is this defined now? Just in the Makefile with -D?

If so, please commit. This really should be in the config header.
Comment 3 Armin Burgmeier 2007-10-12 20:08:51 UTC
> Where is this defined now? Just in the Makefile with -D?
Yes.

I committed the patch with an additional comment along with every use of _CONFIGFILE.