Add a window argument to begin_paint_region in the paintable interface

The paintable itself is now the impl window, which can be different
from the window.
This commit is contained in:
Richard Hult
2009-01-26 18:47:47 +01:00
committed by Alexander Larsson
parent 95cbc754d4
commit 72d4403eed
2 changed files with 2 additions and 1 deletions

View File

@@ -396,6 +396,7 @@ struct _GdkPaintableIface
GTypeInterface g_iface;
void (* begin_paint_region) (GdkPaintable *paintable,
GdkWindow *window,
const GdkRegion *region);
void (* end_paint) (GdkPaintable *paintable);

View File

@@ -2171,7 +2171,7 @@ gdk_window_begin_paint_region (GdkWindow *window,
GdkPaintableIface *iface = GDK_PAINTABLE_GET_IFACE (private->impl);
if (iface->begin_paint_region)
iface->begin_paint_region ((GdkPaintable*)private->impl, region);
iface->begin_paint_region ((GdkPaintable*)private->impl, window, region);
return;
}