From: Marco Pesenti Gritti Date: Wed, 1 Jun 2005 10:43:11 +0000 (+0000) Subject: Do not fail on interpreter messages X-Git-Tag: EVINCE_0_3_3~297 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a60e01194d9e881ef157047f683ce897cd20c139;p=evince.git 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 --- 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); } }