Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGonzalo Odiard <gonzalo@laptop.org>2012-09-04 08:51:24 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-07 09:14:25 (GMT)
commite4ef8e80334f358a385e5a64ca0ed25858680fab (patch)
tree62ec11533030a9d7035d36b3a60981b310ac0c34 /src
parentd7098e75cb7562d162344b7ed1c9d2af37f84281 (diff)
FrameContainer: replace "expose-event" signal by a new "draw" signal
GtkWidget "expose-event" signal has been replaced by a new "draw" signal [1]. [1] http://developer.gnome.org/gtk3/3.0/ch25s02.html#id1467092 Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/frame/framewindow.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jarabe/frame/framewindow.py b/src/jarabe/frame/framewindow.py
index 800f285..a3cf8aa 100644
--- a/src/jarabe/frame/framewindow.py
+++ b/src/jarabe/frame/framewindow.py
@@ -42,9 +42,8 @@ class FrameContainer(Gtk.Bin):
def is_vertical(self):
return self._position in (Gtk.PositionType.LEFT, Gtk.PositionType.RIGHT)
- def do_expose_event(self, event):
+ def do_draw(self, cr):
# Draw the inner border as a rectangle
- cr = self.get_parent_window().cairo_create()
r, g, b, a = style.COLOR_BUTTON_GREY.get_rgba()
cr.set_source_rgba (r, g, b, a)
@@ -62,7 +61,7 @@ class FrameContainer(Gtk.Bin):
cr.rectangle(x, y, width, height)
cr.fill()
- Gtk.Bin.do_expose_event(self, event)
+ Gtk.Bin.do_draw(self, cr)
return False
def do_size_request(self, req):