summaryrefslogtreecommitdiff
path: root/gdk/quartz/gdkpixmap-quartz.c
diff options
context:
space:
mode:
authorRichard Hult <richard@imendio.com>2007-03-10 21:58:49 +0000
committerRichard Hult <rhult@src.gnome.org>2007-03-10 21:58:49 +0000
commitd7a33adeda8799ea35eb907b930f271dfcbc5cbb (patch)
tree928b1367626c2a326029d6fbfd94bb9f6ef6724c /gdk/quartz/gdkpixmap-quartz.c
parent9493e135c7c5341c822c3efbd86e0f515b363c8c (diff)
downloadgdk-pixbuf-d7a33adeda8799ea35eb907b930f271dfcbc5cbb.tar.gz
Update for the new quartz cairo surface API (#410442). Don't lock focus
2007-03-10 Richard Hult <richard@imendio.com> * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_drawable_get_context): Update for the new quartz cairo surface API (#410442). Don't lock focus unless called outside of an expose event. (gdk_quartz_drawable_release_context): Only flush the CG context and unlock focus if called outside of expose. (gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime. (_gdk_quartz_drawable_finish): New function, used to free the cached cairo surface. * gdk/quartz/gdkwindow-quartz.c: (gdk_window_impl_quartz_begin_paint_region): A few small style changes. (gdk_window_quartz_process_all_updates): Move the autorelease pool allocation and freeing outside the loop. (_gdk_windowing_window_destroy): Finish the drawable. (move_resize_window_internal): Small cleanup and remove comment. (_gdk_window_impl_quartz_get_type): No need to make the type info static. * gdk/quartz/gdkpixmap-quartz.c: Finish the drawable. svn path=/trunk/; revision=17463
Diffstat (limited to 'gdk/quartz/gdkpixmap-quartz.c')
-rw-r--r--gdk/quartz/gdkpixmap-quartz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/quartz/gdkpixmap-quartz.c b/gdk/quartz/gdkpixmap-quartz.c
index 8176e75d1..740321dca 100644
--- a/gdk/quartz/gdkpixmap-quartz.c
+++ b/gdk/quartz/gdkpixmap-quartz.c
@@ -48,6 +48,8 @@ gdk_pixmap_impl_quartz_finalize (GObject *object)
CGImageRelease (impl->image);
+ _gdk_quartz_drawable_finish (GDK_DRAWABLE (impl));
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}