summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-17 03:34:04 +0200
committermathieui <mathieui@mathieui.net>2012-05-17 03:34:04 +0200
commit4c0a3fb5a2eca27133e558fa8394b3d07d0203ba (patch)
treec696614fa20404601c3d7d46a6bd5275cc223a99 /src/tabs.py
parent0f7bda20b8b89bf334d67da45f4fc3e4dc8117f9 (diff)
downloadpoezio-4c0a3fb5a2eca27133e558fa8394b3d07d0203ba.tar.gz
poezio-4c0a3fb5a2eca27133e558fa8394b3d07d0203ba.tar.bz2
poezio-4c0a3fb5a2eca27133e558fa8394b3d07d0203ba.tar.xz
poezio-4c0a3fb5a2eca27133e558fa8394b3d07d0203ba.zip
Resolves separator persistence problems - Fixes #2073
Now we have to pass the textbuffer object when we want to add a line separator.
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tabs.py b/src/tabs.py
index f97c7f03..be2a886d 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -535,7 +535,7 @@ class ChatTab(Tab):
def move_separator(self):
self.text_win.remove_line_separator()
- self.text_win.add_line_separator()
+ self.text_win.add_line_separator(self._text_buffer)
self.text_win.refresh()
self.input.refresh()
@@ -1150,7 +1150,7 @@ class MucTab(ChatTab):
else:
self.state = 'disconnected'
self.text_win.remove_line_separator()
- self.text_win.add_line_separator()
+ self.text_win.add_line_separator(self._text_buffer)
if config.get_by_tabname('send_chat_states', 'true', self.general_jid, True) == 'true' and not self.input.get_text():
self.send_chat_state('inactive')
@@ -1686,7 +1686,7 @@ class PrivateTab(ChatTab):
def on_lose_focus(self):
self.state = 'normal'
self.text_win.remove_line_separator()
- self.text_win.add_line_separator()
+ self.text_win.add_line_separator(self._text_buffer)
tab = self.core.get_tab_by_name(JID(self.name).bare, MucTab)
if tab and tab.joined and config.get_by_tabname(
'send_chat_states', 'true', self.general_jid, True) == 'true'\
@@ -2604,7 +2604,7 @@ class ConversationTab(ChatTab):
resource = None
self.state = 'normal'
self.text_win.remove_line_separator()
- self.text_win.add_line_separator()
+ self.text_win.add_line_separator(self._text_buffer)
if config.get_by_tabname('send_chat_states', 'true', self.general_jid, True) == 'true' and (not self.input.get_text() or not self.input.get_text().startswith('//')):
if resource:
self.send_chat_state('inactive')