Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Vinet <vince.vinet@gmail.com>2009-11-30 19:51:52 (GMT)
committer Vincent Vinet <vince.vinet@gmail.com>2009-11-30 19:51:52 (GMT)
commit1b7c133bb8f2f4d82a3497f9031bb3ca9c94a202 (patch)
tree8317488bf3590ce68ab1a1614a03c615f7a600bb
parent6686a0f73d0eaa86221f40a7074e8f5b3aac7d63 (diff)
tutorius.overlayer.Overlayer: check is _overlayed is None before calling set_size_request in __size_allocation
-rw-r--r--tutorius/overlayer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorius/overlayer.py b/tutorius/overlayer.py
index 216d71a..9e4adbf 100644
--- a/tutorius/overlayer.py
+++ b/tutorius/overlayer.py
@@ -149,8 +149,8 @@ class Overlayer(gtk.Layout):
# Since widget is laid out in a Layout box, the Layout will honor the
# requested size. Using size_allocate could make a nasty nested loop in
# some cases.
- self._overlayed.set_size_request(allocation.width, allocation.height)
-
+ if self._overlayed:
+ self._overlayed.set_size_request(allocation.width, allocation.height)
class TextBubble(gtk.Widget):
"""