diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-01-26 10:08:43 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-01-26 10:08:43 +0100 |
commit | 7433510470beaa8f009a14d57952133e7dff82b0 (patch) | |
tree | 7062b30aa6ed68074c08b21e1550dd35409147a3 /src/tabs.py | |
parent | a3344b11b2ea7ac17097b8db4b703bb9f6c02912 (diff) | |
parent | 17fdd5d60618ebc1e84a966b89e57c43fc6dd53a (diff) | |
download | poezio-7433510470beaa8f009a14d57952133e7dff82b0.tar.gz poezio-7433510470beaa8f009a14d57952133e7dff82b0.tar.bz2 poezio-7433510470beaa8f009a14d57952133e7dff82b0.tar.xz poezio-7433510470beaa8f009a14d57952133e7dff82b0.zip |
Merge branch 'master' of https://git.louiz.org/poezio
Conflicts:
src/theming.py
src/windows.py
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py index 019fae30..7df200b0 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -2371,7 +2371,23 @@ class MucListTab(Tab): 'name': item[2] or '' ,'users': ''} for item in iq['disco_items'].get_items()] self.listview.add_lines(items) self.upper_message.set_message('Chatroom list on server %s' % self.name) - self.upper_message.refresh() + if self.core.current_tab() is self: + self.listview.refresh() + self.upper_message.refresh() + else: + self.state = 'highlight' + self.refresh_tab_win() + curses.doupdate() + + def sort_by(self): + if self.list_header.get_order(): + self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False) + self.list_header.set_order(False) + self.list_header.refresh() + else: + self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True) + self.list_header.set_order(True) + self.list_header.refresh() curses.doupdate() def sort_by(self): |