Disable deprecation warnings for tests

This is a change in newer GLib which breaks make check if we
don't disable it.
2.24.25
Do not leak a cairo region

This memory leak fix was present in GTK+ 3 since 3.10. We forgot
to backport it to GTK+ 2.

https://bugzilla.gnome.org/show_bug.cgi?id=738837
Ignore gdk-pixbuf deprecations

We're not going to start updating the 2.24 branch to newer
gdk-pixbuf APIs, so ignore deprecations.
gdk_window_begin_paint_region() - always reuse the same surface

When using the implicit paint pixmap, always draw to the same surface
(the standard one for the pixmap) each time rather than creating a new
one each time. This is both more effective and more natural.

It also fixes a redraw issue on win32, where using multiple surfaces
on the same HDC sometimes causes issues.  This seems to be due to
leftover state on the HDC from previous surfaces.

https://bugzilla.gnome.org/show_bug.cgi?id=741060