diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-18 17:46:54 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-18 17:46:54 +0000 |
commit | a9f04c5fd97edd0caef4913581a9b4ceb5f1bb6c (patch) | |
tree | 9248c1e0a43d0a5bc42c10cfb70aa6928ef7e0b4 /src/gui/gui.h | |
parent | 1e382ab9bda63f419c18074f7669349f6251b942 (diff) | |
download | weechat-a9f04c5fd97edd0caef4913581a9b4ceb5f1bb6c.zip |
Added "Day changed to [date]" message when day changes
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index e34254bf4..ad837b5a9 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -93,16 +93,22 @@ #define MSG_TYPE_NOLOG 64 #define gui_printf_color(buffer, color, fmt, argz...) \ - gui_printf_type_color(buffer, MSG_TYPE_INFO, color, fmt, ##argz) + gui_printf_internal(buffer, 1, MSG_TYPE_INFO, color, fmt, ##argz) #define gui_printf_type(buffer, type, fmt, argz...) \ - gui_printf_type_color(buffer, type, -1, fmt, ##argz) + gui_printf_internal(buffer, 1, type, -1, fmt, ##argz) + +#define gui_printf_type_color(buffer, type, color, fmt, argz...) \ + gui_printf_internal(buffer, 1, type, color, fmt, ##argz) #define gui_printf(buffer, fmt, argz...) \ - gui_printf_type_color(buffer, MSG_TYPE_INFO, -1, fmt, ##argz) + gui_printf_internal(buffer, 1, MSG_TYPE_INFO, -1, fmt, ##argz) #define gui_printf_nolog(buffer, fmt, argz...) \ - gui_printf_type_color(buffer, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) + gui_printf_internal(buffer, 1, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) + +#define gui_printf_nolog_notime(buffer, fmt, argz...) \ + gui_printf_internal(buffer, 0, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) #define NOTIFY_LEVEL_MIN 0 #define NOTIFY_LEVEL_MAX 3 @@ -416,7 +422,7 @@ extern void gui_init_colors (); extern void gui_set_window_title (); extern void gui_init (); extern void gui_end (); -extern void gui_printf_type_color (/*@null@*/ t_gui_buffer *, int, int, char *, ...); +extern void gui_printf_internal (t_gui_buffer *, int, int, int, char *, ...); extern void gui_input_default_key_bindings (); extern void gui_main_loop (); |