Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
a1c4b35b
Commit
a1c4b35b
authored
Nov 19, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not pass stdscr everywhere. Fix crashes on F7-8
parent
229e209d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
111 deletions
+107
-111
src/core.py
src/core.py
+8
-8
src/tab.py
src/tab.py
+99
-103
No files found.
src/core.py
View file @
a1c4b35b
...
...
@@ -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
)
...
...
src/tab.py
View file @
a1c4b35b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment