evince/evince-0.6.0-print-error.patch
2008-07-17 20:37:52 +00:00

22 lines
758 B
Diff

diff -up evince-2.23.4/shell/ev-window.c.print-error evince-2.23.4/shell/ev-window.c
--- evince-2.23.4/shell/ev-window.c.print-error 2008-06-16 16:10:20.000000000 -0400
+++ evince-2.23.4/shell/ev-window.c 2008-07-17 16:34:31.000000000 -0400
@@ -2244,6 +2244,8 @@ ev_window_print_finished (GtkPrintJob *p
if (error) {
GtkWidget *dialog;
+ GDK_THREADS_ENTER ();
+
dialog = gtk_message_dialog_new (GTK_WINDOW (window),
GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR,
@@ -2254,6 +2256,8 @@ ev_window_print_finished (GtkPrintJob *p
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
+
+ GDK_THREADS_LEAVE ();
} else {
/* If printed successfully, save print settings */
ev_application_set_print_settings (EV_APP,