Code

whitespace
[inkscape.git] / src / print.cpp
index 9fc1285a54beeb4e2fa055e349bdbc9951b6d079..cc5d8c0a1fad582db858425eea2d24b4a0a33404 100644 (file)
@@ -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)
 {
     sp_document_ensure_up_to_date(doc);
 
@@ -135,7 +135,8 @@ 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
     sp_item_invoke_hide(base, dkey);