66 |
t_gui_window *new_window; |
t_gui_window *new_window; |
67 |
|
|
68 |
#ifdef DEBUG |
#ifdef DEBUG |
69 |
wee_log_printf ("creating new window (x:%d, y:%d, width:%d, height:%d)\n", |
wee_log_printf ("Creating new window (x:%d, y:%d, width:%d, height:%d)\n", |
70 |
x, y, width, height); |
x, y, width, height); |
71 |
#endif |
#endif |
72 |
if ((new_window = (t_gui_window *)(malloc (sizeof (t_gui_window))))) |
if ((new_window = (t_gui_window *)(malloc (sizeof (t_gui_window))))) |
138 |
t_gui_buffer *new_buffer; |
t_gui_buffer *new_buffer; |
139 |
|
|
140 |
#ifdef DEBUG |
#ifdef DEBUG |
141 |
wee_log_printf ("creating new buffer\n"); |
wee_log_printf ("Creating new buffer\n"); |
142 |
#endif |
#endif |
143 |
|
|
144 |
/* use first buffer if no server was assigned to this buffer */ |
/* use first buffer if no server was assigned to this buffer */ |
327 |
gui_draw_buffer_infobar (gui_current_window->buffer, 1); |
gui_draw_buffer_infobar (gui_current_window->buffer, 1); |
328 |
} |
} |
329 |
else |
else |
330 |
wee_log_printf (_("%s not enough memory for infobar message\n"), |
wee_log_printf (_("Not enough memory for infobar message\n")); |
|
WEECHAT_ERROR); |
|
331 |
|
|
332 |
free (buf2); |
free (buf2); |
333 |
} |
} |
502 |
} |
} |
503 |
else |
else |
504 |
{ |
{ |
505 |
wee_log_printf (_("%s not enough memory for new line!\n")); |
wee_log_printf (_("Not enough memory for new line\n")); |
506 |
return NULL; |
return NULL; |
507 |
} |
} |
508 |
|
|
545 |
} |
} |
546 |
else |
else |
547 |
{ |
{ |
548 |
wee_log_printf (_("not enough memory!\n")); |
wee_log_printf (_("Not enough memory for new message\n")); |
549 |
return NULL; |
return NULL; |
550 |
} |
} |
551 |
return new_message; |
return new_message; |