mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Removed unused signal_gui_print_text, added a g_return_if_fail(dest->window
!= NULL) to "print text" signal - window should be set or it is treated as GUI print event. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1666 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6ec7e12967
commit
11072cc4d7
@ -34,7 +34,7 @@
|
||||
|
||||
static int beep_msg_level, beep_when_away, beep_when_window_active;
|
||||
|
||||
static int signal_gui_print_text, signal_gui_print_text_finished;
|
||||
static int signal_gui_print_text_finished;
|
||||
static int signal_print_starting;
|
||||
static int signal_print_text;
|
||||
static int signal_print_format;
|
||||
@ -379,6 +379,7 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text)
|
||||
char *str, *tmp;
|
||||
|
||||
g_return_if_fail(dest != NULL);
|
||||
g_return_if_fail(dest->window != NULL);
|
||||
g_return_if_fail(text != NULL);
|
||||
|
||||
msg_beep_check(dest);
|
||||
@ -436,7 +437,6 @@ static void read_settings(void)
|
||||
void printtext_init(void)
|
||||
{
|
||||
sending_print_starting = FALSE;
|
||||
signal_gui_print_text = signal_get_uniq_id("gui print text");
|
||||
signal_gui_print_text_finished = signal_get_uniq_id("gui print text finished");
|
||||
signal_print_starting = signal_get_uniq_id("print starting");
|
||||
signal_print_text = signal_get_uniq_id("print text");
|
||||
|
Loading…
Reference in New Issue
Block a user