don't take into account style of not realized widgets. Fixes #5211
This commit is contained in:
parent
1f760de1ff
commit
ca0b16f62b
|
@ -426,8 +426,10 @@ class ChatControlBase(MessageControl):
|
|||
if default_bg or default_fg:
|
||||
self._on_style_set_event(banner_name_label, None, default_fg,
|
||||
default_bg)
|
||||
self._on_style_set_event(self.banner_status_label, None, default_fg,
|
||||
default_bg)
|
||||
if self.banner_status_label.get_property('window'):
|
||||
# Widget is realized
|
||||
self._on_style_set_event(self.banner_status_label, None, default_fg,
|
||||
default_bg)
|
||||
|
||||
def disconnect_style_event(self, widget):
|
||||
# Try to find the event_id
|
||||
|
|
Loading…
Reference in New Issue