# HG changeset patch # User mikael # Date 1115297437 0 # Node ID 4a0bde661562ea8bc69a7a74bcb1f13d4e821ff7 # Parent 42a33611233bbc11522317318ec262143a1c73de [/trunk] Changeset 193 by mikael * Cosmetic changes diff -r 42a33611233b -r 4a0bde661562 mcabber/src/screen.c --- 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;