GNOME Bugzilla – Bug 72760
G_GLOBAL_DISABLE_DEPRECATED
Last modified: 2011-02-18 16:14:11 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
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.
Created attachment 8304 [details] [review] patch for glib
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.
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.
Created attachment 8328 [details] [review] revised patch for glib
I don't think this is worth it