mirror of
https://github.com/irssi/irssi.git
synced 2026-08-24 11:02:21 +02:00
reapply a theme to previous formats
This commit is contained in:
parent
84301a29f8
commit
9f6956415a
17 changed files with 300 additions and 7 deletions
|
|
@ -45,6 +45,8 @@ struct _FORMAT_REC {
|
|||
#define PRINT_FLAG_SET_SERVERTAG 0x0010
|
||||
#define PRINT_FLAG_UNSET_SERVERTAG 0x0020
|
||||
|
||||
#define PRINT_FLAG_FORMAT 0x0080
|
||||
|
||||
typedef struct _HILIGHT_REC HILIGHT_REC;
|
||||
|
||||
typedef struct _TEXT_DEST_REC {
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ static int signal_gui_print_text_finished;
|
|||
static int signal_print_starting;
|
||||
static int signal_print_text;
|
||||
static int signal_print_format;
|
||||
static int signal_print_noformat;
|
||||
|
||||
static int sending_print_starting;
|
||||
|
||||
|
|
@ -313,6 +314,8 @@ static void printtext_dest_args(TEXT_DEST_REC *dest, const char *text, va_list v
|
|||
}
|
||||
|
||||
str = printtext_get_args(dest, text, va);
|
||||
signal_emit_id(signal_print_noformat, 2,
|
||||
dest, str);
|
||||
print_line(dest, str);
|
||||
g_free(str);
|
||||
}
|
||||
|
|
@ -515,6 +518,7 @@ void printtext_init(void)
|
|||
signal_print_starting = signal_get_uniq_id("print starting");
|
||||
signal_print_text = signal_get_uniq_id("print text");
|
||||
signal_print_format = signal_get_uniq_id("print format");
|
||||
signal_print_noformat = signal_get_uniq_id("print noformat");
|
||||
|
||||
read_settings();
|
||||
signal_add("print text", (SIGNAL_FUNC) sig_print_text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue