From a60e01194d9e881ef157047f683ce897cd20c139 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 1 Jun 2005 10:43:11 +0000 Subject: [PATCH] Do not fail on interpreter messages 2005-06-01 Marco Pesenti Gritti * ps/ps-document.c: (interpreter_message), (output): Do not fail on interpreter messages --- ChangeLog | 6 ++++++ ps/ps-document.c | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7ba9a9cb..cb82af89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-01 Marco Pesenti Gritti + + * ps/ps-document.c: (interpreter_message), (output): + + Do not fail on interpreter messages + 2005-06-01 Marco Pesenti Gritti * backend/ev-document-misc.c: diff --git a/ps/ps-document.c b/ps/ps-document.c index 5defb334..b57c96a3 100644 --- a/ps/ps-document.c +++ b/ps/ps-document.c @@ -233,6 +233,13 @@ interpreter_failed (PSDocument *gs, char *msg) stop_interpreter (gs); } +static void +interpreter_message (PSDocument *gs, char *msg) +{ + /* FIXME maybe we should display a dialog */ + g_print (msg); +} + static gboolean ps_document_widget_event (GtkWidget *widget, GdkEvent *event, gpointer data) { @@ -558,7 +565,7 @@ output(gpointer data, gint source, GdkInputCondition condition) if(bytes > 0) { buf[bytes] = '\0'; msg = g_strdup(buf); - interpreter_failed (gs, msg); + interpreter_message (gs, msg); } } -- 2.43.5