diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-06-01 10:43:11 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-06-01 10:43:11 (GMT) |
commit | a60e01194d9e881ef157047f683ce897cd20c139 (patch) | |
tree | b9b81bb83ce0ef16eb6c96d70af8376b78ce37f1 | |
parent | c4bd588e254f2bb9494b9afe4321498dc145b273 (diff) |
Do not fail on interpreter messages
2005-06-01 Marco Pesenti Gritti <mpg@redhat.com>
* ps/ps-document.c: (interpreter_message), (output):
Do not fail on interpreter messages
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ps/ps-document.c | 9 |
2 files changed, 14 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2005-06-01 Marco Pesenti Gritti <mpg@redhat.com> + * ps/ps-document.c: (interpreter_message), (output): + + Do not fail on interpreter messages + +2005-06-01 Marco Pesenti Gritti <mpg@redhat.com> + * backend/ev-document-misc.c: (ev_document_misc_get_thumbnail_frame): diff --git a/ps/ps-document.c b/ps/ps-document.c index 5defb33..b57c96a 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); } } |