Mercurial > hg
changeset 181:4a0bde661562
[/trunk] Changeset 193 by mikael
* Cosmetic changes
author | mikael |
---|---|
date | Thu, 05 May 2005 12:50:37 +0000 |
parents | 42a33611233b |
children | f7b03201877a |
files | mcabber/src/screen.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/screen.c Thu May 05 12:44:32 2005 +0000 +++ b/mcabber/src/screen.c Thu May 05 12:50:37 2005 +0000 @@ -28,8 +28,8 @@ PANEL *panel; char *name; GList *hbuf; - GList *top; // If top is not specified (NULL), we'll display the last lines - char cleared; // For ex, user has issued a /clear command... + GList *top; // If top is NULL, we'll display the last lines + char cleared; // For ex, user has issued a /clear command... struct list_head list; } window_entry_t; @@ -220,7 +220,9 @@ } update_panels(); + // Load buddy history from file (if enabled) hlog_read_history(title, &tmp->hbuf, maxX - scr_WindowWidth(rosterWnd) - 14); + list_add_tail(&tmp->list, &window_list); return tmp; @@ -306,9 +308,8 @@ { window_entry_t *win_entry = scr_SearchWindow(winId); - if (!win_entry) { + if (!win_entry) win_entry = scr_CreateBuddyPanel(winId, FALSE); - } top_panel(win_entry->panel); currentWindow = win_entry;