diff --git a/src/chat_control.py b/src/chat_control.py index ffa3e7abe..82f327047 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -426,7 +426,7 @@ class ChatControlBase(MessageControl): if default_bg or default_fg: self._on_style_set_event(banner_name_label, None, default_fg, default_bg) - if self.banner_status_label.get_property('window'): + if self.banner_status_label.flags() & gtk.REALIZED: # Widget is realized self._on_style_set_event(self.banner_status_label, None, default_fg, default_bg)