From 7d0d4ddb517a27bf5e49a292dad6d70d97056a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 15 Dec 2018 20:55:54 +0000 Subject: Use additional info's value directly in MucInfoWin and ConversationInfoWin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/windows/info_wins.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poezio/windows/info_wins.py b/poezio/windows/info_wins.py index 2c0162b2..d1426e67 100644 --- a/poezio/windows/info_wins.py +++ b/poezio/windows/info_wins.py @@ -87,8 +87,8 @@ class PrivateInfoWin(InfoWin): Write all information added by plugins by getting the value returned by the callbacks. """ - for key in information: - self.addstr(information[key](jid), + for plugin in information.values(): + self.addstr(plugin(jid), to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) def write_room_name(self, name): @@ -277,8 +277,8 @@ class MucInfoWin(InfoWin): Write all information added by plugins by getting the value returned by the callbacks. """ - for key in information: - self.addstr(information[key](jid), + for plugin in information.values(): + self.addstr(plugin(jid), to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) def write_room_name(self, room): -- cgit v1.2.3