From 1b7c133bb8f2f4d82a3497f9031bb3ca9c94a202 Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Mon, 30 Nov 2009 19:51:52 +0000 Subject: tutorius.overlayer.Overlayer: check is _overlayed is None before calling set_size_request in __size_allocation --- (limited to 'tutorius') 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): """ -- cgit v0.9.1