[gtk+/client-side-windows: 178/284] Add a window argument to begin_paint_region in the paintable interface



commit 72d4403eed34c88c9922e01295884b4f9fb8d848
Author: Richard Hult <richard imendio com>
Date:   Mon Jan 26 18:47:47 2009 +0100

    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.
---
 gdk/gdkinternals.h |    1 +
 gdk/gdkwindow.c    |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 4bb5253..1402fdf 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -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);
 
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index c92abdb..3db2f6c 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]