realize is safer
This commit is contained in:
parent
41c0ae46c6
commit
b64f199c08
|
@ -231,7 +231,7 @@ class ChatControlBase(MessageControl):
|
|||
if opts[0]:
|
||||
fg_color = widget.style.fg[gtk.STATE_SELECTED]
|
||||
widget.modify_fg(gtk.STATE_NORMAL, fg_color)
|
||||
widget.ensure_style()
|
||||
widget.realize()
|
||||
self.connect_style_event(widget, opts[0], opts[1])
|
||||
|
||||
def _on_keypress_event(self, widget, event):
|
||||
|
|
|
@ -442,7 +442,7 @@ _('Without a connection, you can not browse available services')).get_response()
|
|||
self.banner_icon = self.xml.get_widget('banner_agent_icon')
|
||||
self.banner_eventbox = self.xml.get_widget('banner_agent_eventbox')
|
||||
self.style_event_id = 0
|
||||
self.banner.ensure_style()
|
||||
self.banner.realize()
|
||||
self.paint_banner()
|
||||
self.filter_hbox = self.xml.get_widget('filter_hbox')
|
||||
self.filter_hbox.set_no_show_all(True)
|
||||
|
|
Loading…
Reference in New Issue