summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/tabs/conversationtab.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py
index 8c128797..08c466ff 100644
--- a/poezio/tabs/conversationtab.py
+++ b/poezio/tabs/conversationtab.py
@@ -66,7 +66,6 @@ class ConversationTab(OneToOneTab):
' allow you to see his presence, and allow them to'
' see your presence.',
shortdesc='Add a user to your roster.')
- self.resize()
self.update_commands()
self.update_keys()
@@ -74,6 +73,9 @@ class ConversationTab(OneToOneTab):
def general_jid(self):
return safeJID(self.name).bare
+ def get_info_header(self):
+ raise NotImplementedError
+
@staticmethod
def add_information_element(plugin_name, callback):
"""
@@ -383,10 +385,14 @@ class DynamicConversationTab(ConversationTab):
self.name = safeJID(jid).bare
if resource:
self.lock(resource)
- self.info_header = windows.DynamicConversationInfoWin()
ConversationTab.__init__(self, core, jid)
+ self.info_header = windows.DynamicConversationInfoWin()
self.register_command('unlock', self.unlock_command,
shortdesc='Unlock the conversation from a particular resource.')
+ self.resize()
+
+ def get_info_header(self):
+ return self.info_header
def lock(self, resource):
"""
@@ -486,6 +492,9 @@ class StaticConversationTab(ConversationTab):
"""
def __init__(self, core, jid):
assert(safeJID(jid).resource)
- self.info_header = windows.ConversationInfoWin()
ConversationTab.__init__(self, core, jid)
+ self.info_header = windows.ConversationInfoWin()
+ self.resize()
+ def get_info_header(self):
+ return self.info_header