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 72760 - G_GLOBAL_DISABLE_DEPRECATED
G_GLOBAL_DISABLE_DEPRECATED
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2002-02-27 02:34 UTC by Havoc Pennington
Modified: 2011-02-18 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for glib (19.47 KB, patch)
2002-05-08 21:38 UTC, Sam TH
none Details | Review
revised patch for glib (976 bytes, patch)
2002-05-09 20:06 UTC, Sam TH
none Details | Review

Description Havoc Pennington 2002-02-27 02:34:30 UTC
Add a macro that will be honored by other libs, to disable all deprecated.
So I don't have to do -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DG_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED blah blah blah.

Each lib using GLib would contain:
#ifdef G_GLOBAL_DISABLE_DEPRECATED
#define FOO_DISABLE_DEPRECATED
#endif
Comment 1 Sam TH 2002-05-08 21:38:13 UTC
This turns out to be lots of busywork.  You have to put the ifdef in
every header file that might be included on its own.  I've done (and
attached) the patch for glib.  It's long but boring and repetetive.  
Comment 2 Sam TH 2002-05-08 21:38:57 UTC
Created attachment 8304 [details] [review]
patch for glib
Comment 3 Matthias Clasen 2002-05-08 21:44:47 UTC
I think you're not supposed to directly include any headers but glib.h.
And even then it should be enough to put the #ifdef in glibconfig.h.
Comment 4 Sam TH 2002-05-09 20:05:40 UTC
I'm not sure about people including specific header files from glib. 
I know I've seen it with 1.2.x glib.  

You're totally correct about glibconfig.h, though.  Revised (much
shorter) patch attached.  If this is deemed reasonable, I'll do the
rest of GTK.  
Comment 5 Sam TH 2002-05-09 20:06:12 UTC
Created attachment 8328 [details] [review]
revised patch for glib
Comment 6 Matthias Clasen 2005-03-08 00:20:33 UTC
I don't think this is worth it