summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-19 16:27:20 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-19 16:27:20 +0000
commita1c4b35b571432242f4fdc7430528f20210df2e5 (patch)
tree0a156717649c4cd5c29abc534795b3594da385d4 /src/core.py
parent229e209dd819d5e9e02b332df62f381413b12d01 (diff)
downloadpoezio-a1c4b35b571432242f4fdc7430528f20210df2e5.tar.gz
poezio-a1c4b35b571432242f4fdc7430528f20210df2e5.tar.bz2
poezio-a1c4b35b571432242f4fdc7430528f20210df2e5.tar.xz
poezio-a1c4b35b571432242f4fdc7430528f20210df2e5.zip
do not pass stdscr everywhere. Fix crashes on F7-8
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core.py b/src/core.py
index 560a5ab4..2bf438d5 100644
--- a/src/core.py
+++ b/src/core.py
@@ -81,8 +81,8 @@ class Core(object):
self.stdscr = curses.initscr()
self.init_curses(self.stdscr)
self.xmpp = xmpp
- default_tab = InfoTab(self.stdscr, self, "Info") if self.xmpp.anon\
- else RosterInfoTab(self.stdscr, self)
+ default_tab = InfoTab(self, "Info") if self.xmpp.anon\
+ else RosterInfoTab(self)
default_tab.on_gain_focus()
self.tabs = [default_tab]
# self.roster = Roster()
@@ -163,7 +163,7 @@ class Core(object):
return
self.information_win_size += 1
for tab in self.tabs:
- tab.on_info_win_size_changed(self.stdscr)
+ tab.on_info_win_size_changed()
self.refresh_window()
def shrink_information_win(self):
@@ -173,7 +173,7 @@ class Core(object):
return
self.information_win_size -= 1
for tab in self.tabs:
- tab.on_info_win_size_changed(self.stdscr)
+ tab.on_info_win_size_changed()
self.refresh_window()
def on_got_offline(self, presence):
@@ -550,7 +550,7 @@ class Core(object):
with resize_lock:
# self.resize_timer = None
for tab in self.tabs:
- tab.resize(self.stdscr)
+ tab.resize()
self.refresh_window()
def main_loop(self):
@@ -634,7 +634,7 @@ class Core(object):
Open a new MucTab containing a muc Room, using the specified nick
"""
r = Room(room, nick)
- new_tab = MucTab(self.stdscr, self, r)
+ new_tab = MucTab(self, r)
if self.current_tab().nb == 0:
self.tabs.append(new_tab)
else:
@@ -733,7 +733,7 @@ class Core(object):
open a new conversation tab and focus it if needed
"""
text_buffer = TextBuffer()
- new_tab = ConversationTab(self.stdscr, self, text_buffer, jid)
+ new_tab = ConversationTab(self, text_buffer, jid)
# insert it in the rooms
if self.current_tab().nb == 0:
self.tabs.append(new_tab)
@@ -760,7 +760,7 @@ class Core(object):
return None
own_nick = room.own_nick
r = Room(complete_jid, own_nick) # PrivateRoom here
- new_tab = PrivateTab(self.stdscr, self, r)
+ new_tab = PrivateTab(self, r)
# insert it in the tabs
if self.current_tab().nb == 0:
self.tabs.append(new_tab)