Mercurial > ~mikael > mcabber > hg
diff mcabber/src/screen.c @ 865:cee8d6be04e1
Improve changeset a3db3ee8b99e, do not enable chatmode when refreshing
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 24 May 2006 21:52:46 +0200 |
parents | 2683ad5d1003 |
children | b30df2ab457f |
line wrap: on
line diff
--- a/mcabber/src/screen.c Tue May 23 22:05:58 2006 +0200 +++ b/mcabber/src/screen.c Wed May 24 21:52:46 2006 +0200 @@ -631,6 +631,21 @@ scr_ShowWindow(jid, FALSE); } +// scr_UpdateBuddyWindow() +// (Re)Display the current window. +// If chatmode is enabled, call scr_ShowBuddyWindow(), +// else display the chat window. +inline void scr_UpdateBuddyWindow(void) +{ + if (chatmode) { + scr_ShowBuddyWindow(); + return; + } + + top_panel(chatPanel); + top_panel(inputPanel); +} + // scr_WriteInWindow() // Write some text in the winId window (this usually is a jid). // Use winId == NULL for the special status buffer.