diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-27 02:00:49 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-27 02:00:49 +0000 |
commit | 696deb5d82dda00bc0fb242ce7534fc55041b0e0 (patch) | |
tree | 80983f4690808c854c48e7427937c52f33886e34 /src | |
parent | 7453b87f30e00e70ae76dbf19e45de6aed79ab27 (diff) | |
download | poezio-696deb5d82dda00bc0fb242ce7534fc55041b0e0.tar.gz poezio-696deb5d82dda00bc0fb242ce7534fc55041b0e0.tar.bz2 poezio-696deb5d82dda00bc0fb242ce7534fc55041b0e0.tar.xz poezio-696deb5d82dda00bc0fb242ce7534fc55041b0e0.zip |
fix a size of the info buffer in private and conversation tabs + Do not focus the tabs on bookmark-join
Diffstat (limited to 'src')
-rw-r--r-- | src/gui.py | 2 | ||||
-rw-r--r-- | src/tab.py | 16 |
2 files changed, 9 insertions, 9 deletions
@@ -211,7 +211,7 @@ class Gui(object): nick = config.get('default_nick', '') if nick == '': nick = default - self.open_new_room(roomname, nick) + self.open_new_room(roomname, nick, False) muc.join_groupchat(self.xmpp, roomname, nick) # if not self.xmpp.anon: # Todo: SEND VCARD @@ -298,7 +298,7 @@ class PrivateTab(Tab): Tab.__init__(self, stdscr) self.info_win_size = info_win_size self._room = room - self.text_win = window.TextWin(self.height-2-self.info_win_size, self.width, 0, 0, stdscr, self.visible) + self.text_win = window.TextWin(self.height-3-self.info_win_size, self.width, 0, 0, stdscr, self.visible) self.info_header = window.PrivateInfoWin(1, self.width, self.height-3-self.info_win_size, 0, stdscr, self.visible) self.info_win = window.TextWin(self.info_win_size, self.width, self.height-2-self.info_win_size, 0, stdscr, self.visible) self.tab_win = window.GlobalInfoBar(1, self.width, self.height-2, 0, stdscr, self.visible) @@ -306,7 +306,7 @@ class PrivateTab(Tab): def resize(self, stdscr): Tab.resize(self, stdscr) - self.text_win.resize(self.height-2-self.info_win_size, self.width, 0, 0, stdscr, self.visible) + self.text_win.resize(self.height-3-self.info_win_size, self.width, 0, 0, stdscr, self.visible) self.info_header.resize(1, self.width, self.height-3-self.info_win_size, 0, stdscr, self.visible) self.info_win.resize(self.info_win_size, self.width, self.height-2-self.info_win_size, 0, stdscr, self.visible) self.tab_win.resize(1, self.width, self.height-2, 0, stdscr, self.visible) @@ -350,9 +350,9 @@ class PrivateTab(Tab): def on_info_win_size_changed(self, size, stdscr): self.info_win_size = size - self.text_win.resize(self.height-2, self.width, 0, 0, stdscr, self.visible) + self.text_win.resize(self.height-3-self.info_win_size, self.width, 0, 0, stdscr, self.visible) self.info_header.resize(1, self.width, self.height-3-self.info_win_size, 0, stdscr, self.visible) - self.info_win.resize(self.info_win_size, (self.width//10)*9, self.height-2-self.info_win_size, 0, stdscr, self.visible) + self.info_win.resize(self.info_win_size, self.width, self.height-2-self.info_win_size, 0, stdscr, self.visible) def get_room(self): return self._room @@ -434,7 +434,7 @@ class ConversationTab(Tab): Tab.__init__(self, stdscr) self.info_win_size = info_win_size self._room = room - self.text_win = window.TextWin(self.height-2-self.info_win_size, self.width, 0, 0, stdscr, self.visible) + self.text_win = window.TextWin(self.height-3-self.info_win_size, self.width, 0, 0, stdscr, self.visible) self.info_header = window.ConversationInfoWin(1, self.width, self.height-3-self.info_win_size, 0, stdscr, self.visible) self.info_win = window.TextWin(self.info_win_size, self.width, self.height-2-self.info_win_size, 0, stdscr, self.visible) self.tab_win = window.GlobalInfoBar(1, self.width, self.height-2, 0, stdscr, self.visible) @@ -442,7 +442,7 @@ class ConversationTab(Tab): def resize(self, stdscr): Tab.resize(self, stdscr) - self.text_win.resize(self.height-2-self.info_win_size, self.width, 0, 0, stdscr, self.visible) + self.text_win.resize(self.height-3-self.info_win_size, self.width, 0, 0, stdscr, self.visible) self.info_header.resize(1, self.width, self.height-3-self.info_win_size, 0, stdscr, self.visible) self.info_win.resize(self.info_win_size, self.width, self.height-2-self.info_win_size, 0, stdscr, self.visible) self.tab_win.resize(1, self.width, self.height-2, 0, stdscr, self.visible) @@ -486,9 +486,9 @@ class ConversationTab(Tab): def on_info_win_size_changed(self, size, stdscr): self.info_win_size = size - self.text_win.resize(self.height-2-self.info_win_size, self.width, 0, 0, stdscr, self.visible) + self.text_win.resize(self.height-3-self.info_win_size, self.width, 0, 0, stdscr, self.visible) self.info_header.resize(1, self.width, self.height-3-self.info_win_size, 0, stdscr, self.visible) - self.info_win.resize(self.info_win_size, (self.width//10)*9, self.height-2-self.info_win_size, 0, stdscr, self.visible) + self.info_win.resize(self.info_win_size, self.width, self.height-2-self.info_win_size, 0, stdscr, self.visible) def get_room(self): return self._room |