summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui.py2
-rw-r--r--src/tab.py16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/gui.py b/src/gui.py
index 37a53c6e..d3d76596 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -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
diff --git a/src/tab.py b/src/tab.py
index 984facd1..dadd2f7f 100644
--- a/src/tab.py
+++ b/src/tab.py
@@ -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