diff options
-rw-r--r-- | tutorius/overlayer.py | 4 |
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): """ |