comparison mcabber/src/screen.c @ 1079:537873e68ea6

The field "name" isn't used anymore
author Mikael Berthe <mikael@lilotux.net>
date Mon, 04 Dec 2006 22:20:26 +0100
parents 7866dbaf67a6
children 07941d7feee9
comparison
equal deleted inserted replaced
1078:7866dbaf67a6 1079:537873e68ea6
55 static GHashTable *winbufhash; 55 static GHashTable *winbufhash;
56 56
57 typedef struct { 57 typedef struct {
58 WINDOW *win; 58 WINDOW *win;
59 PANEL *panel; 59 PANEL *panel;
60 char *name;
61 GList *hbuf; 60 GList *hbuf;
62 GList *top; // If top is NULL, we'll display the last lines 61 GList *top; // If top is NULL, we'll display the last lines
63 char cleared; // For ex, user has issued a /clear command... 62 char cleared; // For ex, user has issued a /clear command...
64 char lock; 63 char lock;
65 } winbuf; 64 } winbuf;
441 safe_usleep(250); 440 safe_usleep(250);
442 tmp->win = newwin(lines, cols, y, x); 441 tmp->win = newwin(lines, cols, y, x);
443 } 442 }
444 wbkgd(tmp->win, get_color(COLOR_GENERAL)); 443 wbkgd(tmp->win, get_color(COLOR_GENERAL));
445 tmp->panel = new_panel(tmp->win); 444 tmp->panel = new_panel(tmp->win);
446 tmp->name = g_strdup(title);
447 445
448 if (!dont_show) { 446 if (!dont_show) {
449 currentWindow = tmp; 447 currentWindow = tmp;
450 } else { 448 } else {
451 if (currentWindow) 449 if (currentWindow)
602 if (!win_entry) { 600 if (!win_entry) {
603 if (special) { 601 if (special) {
604 if (!statusWindow) { 602 if (!statusWindow) {
605 statusWindow = scr_CreateBuddyPanel(NULL, FALSE); 603 statusWindow = scr_CreateBuddyPanel(NULL, FALSE);
606 statusWindow->hbuf = statushbuf; 604 statusWindow->hbuf = statushbuf;
607 statusWindow->name = g_strdup(winId);
608 } 605 }
609 win_entry = statusWindow; 606 win_entry = statusWindow;
610 } else { 607 } else {
611 win_entry = scr_CreateBuddyPanel(winId, FALSE); 608 win_entry = scr_CreateBuddyPanel(winId, FALSE);
612 } 609 }
699 if (!win_entry) { 696 if (!win_entry) {
700 if (special) { 697 if (special) {
701 if (!statusWindow) { 698 if (!statusWindow) {
702 statusWindow = scr_CreateBuddyPanel(NULL, dont_show); 699 statusWindow = scr_CreateBuddyPanel(NULL, dont_show);
703 statusWindow->hbuf = statushbuf; 700 statusWindow->hbuf = statushbuf;
704 //statusWindow->name = g_strdup(winId); // (winId NULL)
705 } 701 }
706 win_entry = statusWindow; 702 win_entry = statusWindow;
707 } else { 703 } else {
708 win_entry = scr_CreateBuddyPanel(winId, dont_show); 704 win_entry = scr_CreateBuddyPanel(winId, dont_show);
709 } 705 }