fix a traceback

This commit is contained in:
Nikos Kouremenos 2005-06-11 09:50:23 +00:00
parent c77387346c
commit 99cb7e175f
2 changed files with 5 additions and 5 deletions

View File

@ -646,12 +646,12 @@ class GroupchatWindow(chat.Chat):
'banner_name_label')
# set the fg colour of the label to white
self.name_labels[room_jid].modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('white'))
banner_eventbox = self.xmls[room_jid].get_widget(
'banner_name_eventbox')
xm = gtk.glade.XML(GTKGUI_GLADE, 'gc_banner_eventbox', APP)
gc_banner_eventbox = xm.get_widget('gc_banner_eventbox')
# get the background color from the current theme
bgcolor = gajim.config.get('accountbgcolor')
banner_eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(bgcolor))
gc_banner_eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(bgcolor))
# connect the menuitems to their respective functions
xm = gtk.glade.XML(GTKGUI_GLADE, 'gc_actions_menu', APP)

View File

@ -8167,7 +8167,7 @@ Custom</property>
<signal name="key_press_event" handler="on_chat_notebook_key_press_event" last_modification_time="Wed, 16 Mar 2005 20:58:38 GMT"/>
<child>
<widget class="GtkEventBox" id="banner_name_eventbox">
<widget class="GtkEventBox" id="gc_banner_eventbox">
<property name="visible">True</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>