diff --git a/src/advanced.py b/src/advanced.py index 37495491d..bf86b3202 100644 --- a/src/advanced.py +++ b/src/advanced.py @@ -34,7 +34,7 @@ OPT_VAL = 1 GTKGUI_GLADE = 'gtkgui.glade' -class Advanced_configuration_window: +class AdvancedConfigurationWindow: def __init__(self, plugin): self.plugin = plugin diff --git a/src/chat.py b/src/chat.py index ac2a1608a..bf4fea260 100644 --- a/src/chat.py +++ b/src/chat.py @@ -799,15 +799,5 @@ class Chat: # iterate through tabs/windows and repaint for jid in self.xmls: - if self.widget_name == 'tabbed_chat_window': - self.xmls[jid].get_widget('banner_status_eventbox').modify_bg( - gtk.STATE_NORMAL, gtk.gdk.color_parse(bgcolor)) - self.xmls[jid].get_widget('banner_typing_eventbox').modify_bg( - gtk.STATE_NORMAL, gtk.gdk.color_parse(bgcolor)) - self.xmls[jid].get_widget('banner_name_eventbox').modify_bg( - gtk.STATE_NORMAL, gtk.gdk.color_parse(bgcolor)) - self.xmls[jid].get_widget('banner_avatar_eventbox').modify_bg( - gtk.STATE_NORMAL, gtk.gdk.color_parse(bgcolor)) - elif self.widget_name == 'groupchat_window': - self.xmls[jid].get_widget('banner_name_eventbox').modify_bg( + self.xmls[jid].get_widget('banner_eventbox').modify_bg( gtk.STATE_NORMAL, gtk.gdk.color_parse(bgcolor)) diff --git a/src/config.py b/src/config.py index c0addd8bb..a86933df4 100644 --- a/src/config.py +++ b/src/config.py @@ -952,7 +952,7 @@ class PreferencesWindow: self.plugin.windows['advanced_config'].window.present() else: self.plugin.windows['advanced_config'] = \ - dialogs.Advanced_configuration_window(self.plugin) + dialogs.AdvancedConfigurationWindow(self.plugin) #---------- AccountModificationWindow class -------------# class AccountModificationWindow: @@ -1261,7 +1261,7 @@ _('To change the account name, it must be disconnected.')).get_response() return if not self.plugin.windows[self.account]['infos'].has_key('vcard'): self.plugin.windows[self.account]['infos'][jid] = \ - dialogs.Vcard_window(jid, self.plugin, self.account, True) + dialogs.VcardWindow(jid, self.plugin, self.account, True) gajim.connections[self.account].request_vcard(jid) def on_manage_proxies_button_clicked(self, widget): diff --git a/src/dialogs.py b/src/dialogs.py index 120cb52dd..ecf629cea 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -22,9 +22,9 @@ import gtk.glade import gobject import os -from vcard import Vcard_window +from vcard import VcardWindow from gajim_themes_window import GajimThemesWindow -from advanced import Advanced_configuration_window +from advanced import AdvancedConfigurationWindow from gajim import User from common import gajim from common import helpers @@ -535,7 +535,7 @@ class Subscription_request_window: self.plugin.windows[self.account]['infos'][self.jid].window.present() else: self.plugin.windows[self.account]['infos'][self.jid] = \ - Vcard_window(self.jid, self.plugin, self.account, True) + VcardWindow(self.jid, self.plugin, self.account, True) #remove the publish / retrieve buttons vcard_xml = self.plugin.windows[self.account]['infos'][self.jid].xml hbuttonbox = vcard_xml.get_widget('information_hbuttonbox') diff --git a/src/gajim.py b/src/gajim.py index 7d5935665..d2ba1e00b 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -807,7 +807,7 @@ class Interface: #2:autoaway and use sleeper #3:autoxa and use sleeper - self.roster = roster_window.Roster_window(self) + self.roster = roster_window.RosterWindow(self) path_to_file = os.path.join(gajim.DATA_DIR, 'pixmaps/gajim.png') pix = gtk.gdk.pixbuf_new_from_file(path_to_file) gtk.window_set_default_icon(pix) # set the icon to all newly opened windows diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 9766a80d5..7d35ef03e 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -37,7 +37,7 @@ gtk.glade.textdomain(APP) GTKGUI_GLADE = 'gtkgui.glade' -class Groupchat_window(chat.Chat): +class GroupchatWindow(chat.Chat): """Class for Groupchat window""" def __init__(self, room_jid, nick, plugin, account): chat.Chat.__init__(self, plugin, account, 'groupchat_window') @@ -513,7 +513,7 @@ class Groupchat_window(chat.Chat): self.plugin.windows[self.account]['infos'][jid].window.present() else: self.plugin.windows[self.account]['infos'][jid] = \ - dialogs.Vcard_window(jid, self.plugin, self.account, True) + dialogs.VcardWindow(jid, self.plugin, self.account, True) # FIXME: when we'll have a user for each contact, this won't be needed # cause we'll user real information window vcard_xml = self.plugin.windows[self.account]['infos'][jid].xml diff --git a/src/gtkgui.glade b/src/gtkgui.glade index 41628e4cf..9c8bdfabd 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -8167,16 +8167,16 @@ Custom - + - - 0 - False - True - @@ -9589,19 +9589,17 @@ This is the subject. 1 -