split NOTIFY event into NOTIFY and GC_NOTIFY

This commit is contained in:
Yann Leboulanger 2005-09-20 18:36:28 +00:00
parent 83aa034a24
commit bc25dbef03
4 changed files with 6 additions and 4 deletions

View File

@ -69,9 +69,6 @@ class Chat:
self.sent_history_pos = {} self.sent_history_pos = {}
self.typing_new = {} self.typing_new = {}
self.orig_msg = {} self.orig_msg = {}
# we check that on opening new windows
self.always_compact_view = gajim.config.get('always_compact_view')
# notebook customizations # notebook customizations
self.notebook = self.xml.get_widget('chat_notebook') self.notebook = self.xml.get_widget('chat_notebook')

View File

@ -119,7 +119,8 @@ class Config:
'show_roster_on_startup': [opt_bool, True], 'show_roster_on_startup': [opt_bool, True],
'key_up_lines': [opt_int, 25, _('How many lines to store for key up.')], 'key_up_lines': [opt_int, 25, _('How many lines to store for key up.')],
'version': [ opt_str, '0.9' ], # which version created the config 'version': [ opt_str, '0.9' ], # which version created the config
'always_compact_view': [opt_bool, False], # initial compact view state 'always_compact_view_chat': [opt_bool, False, _('Use compact view when you open a chat window')],
'always_compact_view_gc': [opt_bool, False, _('Use compact view when you open a group chat window')],
'search_engine': [opt_str, 'http://www.google.com/search?&q=%s&sourceid=gajim'], 'search_engine': [opt_str, 'http://www.google.com/search?&q=%s&sourceid=gajim'],
'dictionary_url': [opt_str, 'WIKTIONARY', _("Either custom url with %s in it where %s is the word/phrase or 'WIKTIONARY' which means use wiktionary.")], 'dictionary_url': [opt_str, 'WIKTIONARY', _("Either custom url with %s in it where %s is the word/phrase or 'WIKTIONARY' which means use wiktionary.")],
'always_english_wikipedia': [opt_bool, False], 'always_english_wikipedia': [opt_bool, False],

View File

@ -46,6 +46,8 @@ GTKGUI_GLADE = 'gtkgui.glade'
class GroupchatWindow(chat.Chat): class GroupchatWindow(chat.Chat):
"""Class for Groupchat window""" """Class for Groupchat window"""
def __init__(self, room_jid, nick, plugin, account): def __init__(self, room_jid, nick, plugin, account):
# we check that on opening new windows
self.always_compact_view = gajim.config.get('always_compact_view_gc')
chat.Chat.__init__(self, plugin, account, 'groupchat_window') chat.Chat.__init__(self, plugin, account, 'groupchat_window')
# alphanum sorted # alphanum sorted

View File

@ -44,6 +44,8 @@ GTKGUI_GLADE = 'gtkgui.glade'
class TabbedChatWindow(chat.Chat): class TabbedChatWindow(chat.Chat):
"""Class for tabbed chat window""" """Class for tabbed chat window"""
def __init__(self, user, plugin, account): def __init__(self, user, plugin, account):
# we check that on opening new windows
self.always_compact_view = gajim.config.get('always_compact_view_chat')
chat.Chat.__init__(self, plugin, account, 'tabbed_chat_window') chat.Chat.__init__(self, plugin, account, 'tabbed_chat_window')
self.contacts = {} self.contacts = {}
# keep check for possible paused timeouts per jid # keep check for possible paused timeouts per jid