From 68222109f50c249c0e3e4ec9f58c30fc63d281b0 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 26 Apr 2018 16:52:50 +0200 Subject: [PATCH] Pass parent window to gtk_print_operation_run (fixes #726) --- zathura/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura/print.c b/zathura/print.c index df6087b..7ee7f1f 100644 --- a/zathura/print.c +++ b/zathura/print.c @@ -58,7 +58,7 @@ print(zathura_t* zathura) GError* error = NULL; GtkPrintOperationResult result = gtk_print_operation_run(print_operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, - NULL, &error); + GTK_WINDOW(zathura->ui.session->gtk.window), &error); if (result == GTK_PRINT_OPERATION_RESULT_ERROR) { girara_notify(zathura->ui.session, GIRARA_ERROR, _("Printing failed: %s"),