From 362fdc2f7d4433c692be937f6cc07945bc77841a Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 29 Dec 2006 14:57:45 +0000 Subject: [PATCH] better status display while printing --- plug-ins/print/print.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plug-ins/print/print.c b/plug-ins/print/print.c index 30c8b40f93..3926958b2e 100644 --- a/plug-ins/print/print.c +++ b/plug-ins/print/print.c @@ -206,11 +206,13 @@ print_image (gint32 image_ID, status = gtk_print_operation_get_status_string (operation); - /* display status of the print operation in the status bar */ - gimp_progress_set_text_printf (_("Print: %s"), status); + if (status && strlen (status)) + { + /* display status of the print operation in the status bar */ + gimp_progress_set_text_printf (_("Print: %s"), status); + } - while (gtk_events_pending ()) - gtk_main_iteration (); + gtk_main_iteration (); } switch (result)