diff options
| author | Joel Holdsworth <joel@airwebreathe.org.uk> | 2007-12-22 21:06:55 +0000 |
|---|---|---|
| committer | joelholdsworth <joelholdsworth@users.sourceforge.net> | 2007-12-22 21:06:55 +0000 |
| commit | 9e79fe7d4b35be5c4847686c2d4babf9daa53c04 (patch) | |
| tree | ddd44e2a3cba329dc94360b6be9d0280d6160b32 /src/print.cpp | |
| parent | Fix typo in an array causing a write off the end. Causes bug if no (diff) | |
| download | inkscape-9e79fe7d4b35be5c4847686c2d4babf9daa53c04.tar.gz inkscape-9e79fe7d4b35be5c4847686c2d4babf9daa53c04.zip | |
Fixed the parenting of the print dialog so that it cannot fall behind the main inkscape desktop window
(bzr r4278)
Diffstat (limited to 'src/print.cpp')
| -rw-r--r-- | src/print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
