gtk-demo: Cosmetics

Don't print out when the user just canceled the print dialog,
in the fill and stroke demo.
This commit is contained in:
Matthias Clasen 2024-09-01 07:59:01 -04:00
parent 5f1ec18550
commit a8e49cc21f

View File

@ -225,7 +225,8 @@ print_ready (GObject *source,
if (!g_output_stream_close (stream, NULL, &error))
{
g_print ("Error from close: %s\n", error->message);
if (!g_error_matches (error, GTK_DIALOG_ERROR, GTK_DIALOG_ERROR_DISMISSED))
g_print ("Error from close: %s\n", error->message);
g_error_free (error);
}