Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/overlayer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/overlayer.py')
-rw-r--r--tutorius/overlayer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tutorius/overlayer.py b/tutorius/overlayer.py
index 5454b39..96e9acf 100644
--- a/tutorius/overlayer.py
+++ b/tutorius/overlayer.py
@@ -158,7 +158,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 FrameOverlayer(gtk.Window):
def __init__(self):