Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/gtkcompat.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/gtkcompat.py b/util/gtkcompat.py
index 6e2bb67..fea0b6f 100644
--- a/util/gtkcompat.py
+++ b/util/gtkcompat.py
@@ -8,7 +8,11 @@ try:
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GObject, GdkPixbuf
from gi.repository import Pango, PangoCairo
- Rectangle = lambda x, y, w, h: (x,y,w,h)
+ def Rectangle(x, y, w, h):
+ r = Gdk.Rectangle()
+ r.x, r.y = x, y
+ r.width, r.height = w, h
+ return r
GObject.TYPE_NONE = None # compatibility hack
class GConf:
pass # XXX no more GConf, sigh