[pygi] override Gdk.Drawable to add cairo_create convinience method



commit 64324a4c629432b2e688299b6edbfd5da4439a2a
Author: John (J5) Palmieri <johnp redhat com>
Date:   Fri Apr 30 14:11:55 2010 -0400

    override Gdk.Drawable to add cairo_create convinience method

 gi/overrides/Gdk.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gi/overrides/Gdk.py b/gi/overrides/Gdk.py
index 607d826..4578ca8 100644
--- a/gi/overrides/Gdk.py
+++ b/gi/overrides/Gdk.py
@@ -60,8 +60,13 @@ class Color(Gdk.Color):
 
 Color = override(Color)
 
+class Drawable(Gdk.Drawable):
+    def cairo_create(self):
+        return Gdk.cairo_create(self)
 
-__all__ = ['Rectangle', 'Color']
+Drawable = override(Drawable)
+
+__all__ = ['Rectangle', 'Color', 'Drawable']
 
 
 



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