summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-15 19:05:20 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-15 19:05:20 +0000
commit6018d243fb09f891477caabd5ee2c9fdaed62faf (patch)
treec4cc2e19832003718624cdb1c0318d568aeffe59 /src/gui.py
parentcdcfddcb2e7d4f215ce9940f25a8c57f2c58a919 (diff)
downloadpoezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.tar.gz
poezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.tar.bz2
poezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.tar.xz
poezio-6018d243fb09f891477caabd5ee2c9fdaed62faf.zip
fixes some crashes, and stuff
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui.py b/src/gui.py
index 0df8be86..5f3b1323 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -35,8 +35,7 @@ import theme
import multiuserchat as muc
from handler import Handler
from config import config
-from tab import MucTab, InfoTab, PrivateTab
-from window import Window
+from tab import MucTab, InfoTab, PrivateTab, RosterInfoTab
from user import User
from room import Room
from message import Message
@@ -74,7 +73,9 @@ class Gui(object):
self.stdscr = curses.initscr()
self.init_curses(self.stdscr)
self.xmpp = xmpp
- self.tabs = [InfoTab(self.stdscr, "lol info")]
+ default_tab = InfoTab(self.stdscr, "Info") if self.xmpp.anon\
+ else RosterInfoTab(self.stdscr, "Roster")
+ self.tabs = [default_tab]
# a unique buffer used to store global informations
# that are displayed in almost all tabs, in an
# information window.