From 9e79fe7d4b35be5c4847686c2d4babf9daa53c04 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 22 Dec 2007 21:06:55 +0000 Subject: Fixed the parenting of the print dialog so that it cannot fall behind the main inkscape desktop window (bzr r4278) --- src/print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/print.cpp') diff --git a/src/print.cpp b/src/print.cpp index 0dfb8ab5a..a24a01ff7 100644 --- a/src/print.cpp +++ b/src/print.cpp @@ -123,7 +123,7 @@ sp_print_preview_document(SPDocument *doc) } void -sp_print_document(SPDocument *doc, unsigned int /*direct*/) +sp_print_document(Gtk::Window& parentWindow, SPDocument *doc, unsigned int /*direct*/) { sp_document_ensure_up_to_date(doc); @@ -135,7 +135,7 @@ sp_print_document(SPDocument *doc, unsigned int /*direct*/) // Run print dialog Inkscape::UI::Dialog::Print printop(doc,base); - Gtk::PrintOperationResult res = printop.run(Gtk::PRINT_OPERATION_ACTION_PRINT_DIALOG); + Gtk::PrintOperationResult res = printop.run(Gtk::PRINT_OPERATION_ACTION_PRINT_DIALOG, parentWindow); (void)res; // TODO handle this // Release arena -- cgit v1.2.3