[pygobject/pygobject-2-28] [gi-overrides] for Gtk 3 alias Gdk.Rectangle to cairo.RectangleInt
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-2-28] [gi-overrides] for Gtk 3 alias Gdk.Rectangle to cairo.RectangleInt
- Date: Mon, 14 Feb 2011 21:48:36 +0000 (UTC)
commit ddde83ebd4dbb179aa5388057a14faf32ece26ae
Author: John (J5) Palmieri <johnp redhat com>
Date: Mon Feb 14 16:43:35 2011 -0500
[gi-overrides] for Gtk 3 alias Gdk.Rectangle to cairo.RectangleInt
* note this is the introspected gobject-cairo boxed type not the static cairo
bindings
* we alias this so people do not get confused
gi/overrides/Gdk.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gdk.py b/gi/overrides/Gdk.py
index 4ed71a6..70bd495 100644
--- a/gi/overrides/Gdk.py
+++ b/gi/overrides/Gdk.py
@@ -61,6 +61,11 @@ if Gdk._version == '2.0':
Rectangle = override(Rectangle)
__all__.append('Rectangle')
+else:
+ from gi.repository import cairo as _cairo
+ Rectangle = _cairo.RectangleInt
+
+ __all__.append('Rectangle')
if Gdk._version == '2.0':
class Drawable(Gdk.Drawable):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]