]> Pileus Git - ~andy/gtk/commit
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pi...
authorJohn Ralls <jralls@ceridwen.us>
Mon, 7 Nov 2011 22:25:08 +0000 (14:25 -0800)
committerJohn Ralls <jralls@ceridwen.us>
Mon, 7 Nov 2011 22:25:08 +0000 (14:25 -0800)
commit085b98f47031bb48f84fde2ee2cd6618acfdacfc
treec9d285838c0803fede93f6f3fedf22145b5d9214
parent42656dde57ac1b661ff0692ed210617ec49d34c0
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()"

If a zero-sized NSImage calls lockfocus it throws an exception. Make sure that the image isn't zero-sized before calling lockfocus, and log a warning and return NULL if it is zero-sized.

Have the quartz version of gtk_drag_begin_idle return FALSE if the returned image is NULL.
gtk/gtkdnd-quartz.c
gtk/gtkquartz.c