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
205
Issues
205
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
17ebb92e
Commit
17ebb92e
authored
Oct 17, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yet better refresh
parent
9c9236eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/gui.py
src/gui.py
+2
-1
src/window.py
src/window.py
+2
-4
No files found.
src/gui.py
View file @
17ebb92e
...
...
@@ -472,7 +472,6 @@ class Gui(object):
A subscription changed, or we received a roster item
after a roster request, etc
"""
# debug('Roster Update: \n%s\n\n' % iq)
for
item
in
iq
.
findall
(
'{jabber:iq:roster}query/{jabber:iq:roster}item'
):
jid
=
item
.
attrib
[
'jid'
]
contact
=
self
.
roster
.
get_contact_by_jid
(
jid
)
...
...
@@ -587,6 +586,7 @@ class Gui(object):
"""
self
.
current_tab
().
set_color_state
(
theme
.
COLOR_TAB_CURRENT
)
self
.
current_tab
().
refresh
(
self
.
tabs
,
self
.
information_buffer
,
self
.
roster
)
self
.
doupdate
()
def
open_new_room
(
self
,
room
,
nick
,
focus
=
True
):
"""
...
...
@@ -1337,4 +1337,5 @@ class Gui(object):
self
.
doupdate
()
def
doupdate
(
self
):
self
.
current_tab
().
just_before_refresh
()
curses
.
doupdate
()
src/window.py
View file @
17ebb92e
...
...
@@ -876,7 +876,7 @@ class Input(Win):
with
g_lock
:
self
.
clear_text
()
self
.
addstr
(
self
.
text
[
self
.
line_pos
:
self
.
line_pos
+
self
.
width
-
1
])
# self.win.chgat(0, self.pos, 1, curses.A_REVERSE)
self
.
addstr
(
0
,
self
.
pos
,
''
)
# WTF, this works but .move() doesn't...
self
.
_refresh
()
def
refresh
(
self
):
...
...
@@ -891,9 +891,7 @@ class Input(Win):
"""
move the cursor at the current pos
"""
from
common
import
debug
debug
(
'ALLO'
)
self
.
_win
.
move
(
0
,
self
.
pos
)
return
class
VerticalSeparator
(
Win
):
"""
...
...
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