GNOME Bugzilla – Bug 328617
Should not include -DG_DISABLE_DEPRECATED unconditionally
Last modified: 2006-01-29 04:00:21 UTC
Currently both Pango and Gtk+ use -DG_DISABLE_DEPRECATED, but this bites us in the future when an interface we are currently using is deprecated in a future version of glib. This happened with Gtk+ when glib got g_slice and deprecated memchunks. That's bad. As a solution, -DG_DISABLE_DEPRECATED should only be used if the major-minor of the found glib is the same as the major-minor of the required glib.
Created attachment 58118 [details] [review] pango patch 2006-01-25 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
Created attachment 58119 [details] [review] Gtk+ patch Matthias, commit-now? I suggest it on stable branch too.
Matthias: ping.
Looks good to me.
Committed to Gtk+ HEAD. Branch too? 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.