From b64f199c087f36546a1ce6952a745c59f6c977c3 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Sat, 25 Mar 2006 02:07:02 +0000 Subject: [PATCH] realize is safer --- src/chat_control.py | 2 +- src/disco.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 0e2b5ce77..9bb1137f6 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -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): diff --git a/src/disco.py b/src/disco.py index ec7edb00e..b9a57d96c 100644 --- a/src/disco.py +++ b/src/disco.py @@ -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)