summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-14 16:45:31 +0200
committermathieui <mathieui@mathieui.net>2017-10-14 16:45:31 +0200
commit8af1a39d7eb95a18a2feddc53badb458798cc0de (patch)
treeabd883c5bb69440e3dc7c757b37ca0c551ae331b
parentfc6f2f2bf77ba662f4cdbb6e6c575bb3af2686e3 (diff)
downloadpoezio-8af1a39d7eb95a18a2feddc53badb458798cc0de.tar.gz
poezio-8af1a39d7eb95a18a2feddc53badb458798cc0de.tar.bz2
poezio-8af1a39d7eb95a18a2feddc53badb458798cc0de.tar.xz
poezio-8af1a39d7eb95a18a2feddc53badb458798cc0de.zip
Add a refresh wrapper on the methods for scrolling the userlist
-rw-r--r--poezio/tabs/muctab.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 1b8aea3c..b9d38072 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -105,11 +105,6 @@ class MucTab(ChatTab):
return last_message.time
return None
- def scroll_user_list_down(self):
- self.user_win.scroll_down()
- self.user_win.refresh(self.users)
- self.input.refresh()
-
def cancel_config(self, form):
"""
The user do not want to send his/her config, send an iq cancel
@@ -1037,10 +1032,15 @@ class MucTab(ChatTab):
"""
self.text_win.previous_highlight()
+ @refresh_wrapper.always
def scroll_user_list_up(self):
+ "Scroll up in the userlist"
self.user_win.scroll_up()
- self.user_win.refresh(self.users)
- self.input.refresh()
+
+ @refresh_wrapper.always
+ def scroll_user_list_down(self):
+ "Scroll down in the userlist"
+ self.user_win.scroll_down()
def resize(self):
"""