GNOME Bugzilla – Bug 357970
Don't call deprecated GLib / GDK functions (continued)
Last modified: 2006-12-04 18:06:34 UTC
This is a follow up to bug #352450. I found a bunch more deprecated GLib and GDK symbols that Evolution is still using. I must've forgotten to recompile after fixing the first wave of compilation errors in the previous bug. To reproduce: $ CFLAGS="-DG_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 > -DGDK_DISABLE_DEPRECATED=1" ./configure; make
$ CFLAGS="-DG_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1" ./configure; make okay...
Created attachment 73503 [details] [review] Proposed patch This patch, along with the patch in bug #357216, should allow evolution to compile with deprecated GLib and GDK symbols disabled as shown above.
I am always curious of cleanups throughout the gnome stack, so I noticed this bug being filed. Great stuff. What about adding this to configure.in ? AC_ARG_ENABLE(deprecations, [AC_HELP_STRING([--enable-deprecations], [warn about deprecated usages [default=no]])],, [enable_deprecations=no]) if test "x$enable_deprecations" = "xyes"; then DISABLE_DEPRECATED_CFLAGS="\ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGNOME_DISABLE_DEPRECATED" AC_SUBST(DISABLE_DEPRECATED_CFLAGS) fi
Mathew : thanks for the updated patch. Paolo : Thanks for the configure.in snippet. I agree this is a good (must) thing to have. I do not have access to my workarea atm...but will review/test this tomorrow and ensure it hits the 2.8.1 release.
(In reply to comment #3) Great idea, although we're not quite ready for GTK_DISABLE_DEPRECATED or GNOME_DISABLE_DEPRECATED. I'm working on that.
Oops.. I missed this for 2.8.1. Looks good to commit. thanks for the patch. Yes, it is too early to do a complete sweep, but this patch is a way forward. Matthew: Thanks again for this patch and your continued contribution.
Committed to HEAD and gnome-2-16 branch. I opened bug #382288 to address Paolo's suggestion.