[pygobject] Do not override GdkRectangle.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Do not override GdkRectangle.
- Date: Mon, 5 Jul 2010 14:12:11 +0000 (UTC)
commit 2357bca8d14539894b6bd0acfdc18d30b4bb4db6
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Jul 5 16:11:07 2010 +0200
Do not override GdkRectangle.
This class was lately removed from gtk+ 3, so there is no need to override
it anymore.
gi/overrides/Gdk.py | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/gi/overrides/Gdk.py b/gi/overrides/Gdk.py
index 34d3a10..4eaff08 100644
--- a/gi/overrides/Gdk.py
+++ b/gi/overrides/Gdk.py
@@ -26,25 +26,6 @@ Gdk = modules['Gdk']
__all__ = []
-class Rectangle(Gdk.Rectangle):
-
- def __init__(self, x, y, width, height):
- Gdk.Rectangle.__init__(self)
- self.x = x
- self.y = y
- self.width = width
- self.height = height
-
- def __new__(cls, *args, **kwargs):
- return Gdk.Rectangle.__new__(cls)
-
- def __repr__(self):
- return '<Gdk.Rectangle(x=%d, y=%d, width=%d, height=%d)>' % (
- self.x, self.y, self.width, self.height)
-
-Rectangle = override(Rectangle)
-__all__.append('Rectangle')
-
class Color(Gdk.Color):
def __init__(self, red, green, blue):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]