From 11072cc4d7aa835db52fe5fe1d06f04ed052fde4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 29 Jul 2001 01:16:27 +0000 Subject: [PATCH] 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 --- src/fe-common/core/printtext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c index a807d52c..3c38fd9b 100644 --- a/src/fe-common/core/printtext.c +++ b/src/fe-common/core/printtext.c @@ -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");