comparison mcabber/src/screen.c @ 76:a8f8492abd44

[/trunk] Changeset 90 by mikael * Cleaning * Fix a bug when the log file cannot be opened.
author mikael
date Sat, 16 Apr 2005 18:13:24 +0000
parents ff119bb11563
children 0bd578421ce9
comparison
equal deleted inserted replaced
75:ff119bb11563 76:a8f8492abd44
183 183
184 tmp->win = newwin(lines, cols, y, x); 184 tmp->win = newwin(lines, cols, y, x);
185 tmp->panel = new_panel(tmp->win); 185 tmp->panel = new_panel(tmp->win);
186 tmp->name = (char *) calloc(1, 1024); 186 tmp->name = (char *) calloc(1, 1024);
187 strncpy(tmp->name, title, 1024); 187 strncpy(tmp->name, title, 1024);
188
189 //scr_draw_box(tmp->win, 0, 0, lines, cols, COLOR_GENERAL, 0, 0);
190 scr_clear_box(tmp->win, 0, 0, lines, cols, COLOR_GENERAL); 188 scr_clear_box(tmp->win, 0, 0, lines, cols, COLOR_GENERAL);
191 //mvwprintw(tmp->win, 0, (cols - (2 + strlen(title))) / 2, " %s ", title); 189
192 if ((!dont_show)) { 190 if ((!dont_show)) {
193 currentWindow = tmp; 191 currentWindow = tmp;
194 } else { 192 } else {
195 if (currentWindow) 193 if (currentWindow)
196 top_panel(currentWindow->panel); 194 top_panel(currentWindow->panel);