realize is safer

This commit is contained in:
Dimitur Kirov 2006-03-25 02:07:02 +00:00
parent 41c0ae46c6
commit b64f199c08
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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)