don't take into account style of not realized widgets. Fixes #5211

This commit is contained in:
Yann Leboulanger 2009-08-06 18:34:53 +02:00
parent 1f760de1ff
commit ca0b16f62b
1 changed files with 4 additions and 2 deletions

View File

@ -426,8 +426,10 @@ class ChatControlBase(MessageControl):
if default_bg or default_fg: if default_bg or default_fg:
self._on_style_set_event(banner_name_label, None, default_fg, self._on_style_set_event(banner_name_label, None, default_fg,
default_bg) default_bg)
self._on_style_set_event(self.banner_status_label, None, default_fg, if self.banner_status_label.get_property('window'):
default_bg) # Widget is realized
self._on_style_set_event(self.banner_status_label, None, default_fg,
default_bg)
def disconnect_style_event(self, widget): def disconnect_style_event(self, widget):
# Try to find the event_id # Try to find the event_id