2006-09-03 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
exposure isn't in the event mask, plug a leak, and check that the
window isn't destroyed.
(isOpaque): Check that the window isn't destroyed, fixes bug
#353028.
+2006-09-03 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
+ exposure isn't in the event mask, plug a leak, and check that the
+ window isn't destroyed.
+ (isOpaque): Check that the window isn't destroyed, fixes bug
+ #353028.
+
2006-09-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.
-(BOOL)isOpaque
{
+ if (GDK_WINDOW_DESTROYED (gdk_window))
+ return YES;
+
/* A view is opaque if its GdkWindow doesn't have the RGBA colormap */
return gdk_drawable_get_colormap (gdk_window) != gdk_screen_get_rgba_colormap (_gdk_screen);
}
int count, i;
GdkRegion *region;
+ if (GDK_WINDOW_DESTROYED (gdk_window))
+ return;
+
+ if (!(private->event_mask & GDK_EXPOSURE_MASK))
+ return;
+
GDK_QUARTZ_ALLOC_POOL;
[self getRectsBeingDrawn:&drawn_rects count:&count];
impl->in_paint_rect_count --;
g_object_unref (gdk_window);
- gdk_region_destroy (event.expose.region);
}
+ gdk_region_destroy (region);
+
GDK_QUARTZ_RELEASE_POOL;
}