Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ps/ps-document.c
diff options
context:
space:
mode:
authorMarco 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)
commita60e01194d9e881ef157047f683ce897cd20c139 (patch)
treeb9b81bb83ce0ef16eb6c96d70af8376b78ce37f1 /ps/ps-document.c
parentc4bd588e254f2bb9494b9afe4321498dc145b273 (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
Diffstat (limited to 'ps/ps-document.c')
-rw-r--r--ps/ps-document.c9
1 files changed, 8 insertions, 1 deletions
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);
}
}