29 |
#include <string.h> |
#include <string.h> |
30 |
#include <signal.h> |
#include <signal.h> |
31 |
#include <time.h> |
#include <time.h> |
32 |
|
#include <gtk/gtk.h> |
33 |
|
|
34 |
#include "../../weechat.h" |
#include "../../common/weechat.h" |
35 |
#include "../gui.h" |
#include "../gui.h" |
36 |
#include "../../config.h" |
#include "../../common/config.h" |
37 |
#include "../../irc/irc.h" |
#include "../../irc/irc.h" |
38 |
|
|
39 |
|
|
145 |
} |
} |
146 |
|
|
147 |
/* |
/* |
148 |
|
* gui_window_has_nicklist: returns 1 if window has nicklist |
149 |
|
*/ |
150 |
|
|
151 |
|
int |
152 |
|
gui_window_has_nicklist (t_gui_window *window) |
153 |
|
{ |
154 |
|
return (window->textbuffer_nicklist != NULL); |
155 |
|
} |
156 |
|
|
157 |
|
/* |
158 |
* gui_calculate_pos_size: calculate position and size for a window & sub-win |
* gui_calculate_pos_size: calculate position and size for a window & sub-win |
159 |
*/ |
*/ |
160 |
|
|
390 |
|
|
391 |
gui_redraw_window_title (window); |
gui_redraw_window_title (window); |
392 |
gui_redraw_window_chat (window); |
gui_redraw_window_chat (window); |
393 |
if (WIN_HAS_NICKLIST(window)) |
if (gui_window_has_nicklist (window)) |
394 |
gui_redraw_window_nick (window); |
gui_redraw_window_nick (window); |
395 |
gui_redraw_window_status (window); |
gui_redraw_window_status (window); |
396 |
gui_redraw_window_input (window); |
gui_redraw_window_input (window); |
549 |
} |
} |
550 |
|
|
551 |
/* |
/* |
552 |
|
* gui_pre_init: pre-initialize GUI (called before gui_init) |
553 |
|
*/ |
554 |
|
|
555 |
|
void |
556 |
|
gui_pre_init (int *argc, char **argv[]) |
557 |
|
{ |
558 |
|
/* Initialise Gtk+ */ |
559 |
|
gtk_init (argc, argv); |
560 |
|
} |
561 |
|
|
562 |
|
/* |
563 |
* gui_init_colors: init GUI colors |
* gui_init_colors: init GUI colors |
564 |
*/ |
*/ |
565 |
|
|