Code

Bugfix to prevent the print dialog falling underneath the inkscape desktop windows...
authorjoelholdsworth <joelholdsworth@users.sourceforge.net>
Fri, 21 Mar 2008 19:31:26 +0000 (19:31 +0000)
committerjoelholdsworth <joelholdsworth@users.sourceforge.net>
Fri, 21 Mar 2008 19:31:26 +0000 (19:31 +0000)
src/ui/dialog/print.cpp
src/ui/dialog/print.h

index 52ff07ee6d5d2d409454fb9c202a91af58414269..9b6cc754324564daab645147b351b8c6ce257cd1 100644 (file)
@@ -170,9 +170,10 @@ Print::Print(SPDocument *doc, SPItem *base) :
     gtk_print_operation_set_custom_tab_label (_printop, _("Rendering"));
 }
 
-Gtk::PrintOperationResult Print::run(Gtk::PrintOperationAction, Gtk::Window&)
+Gtk::PrintOperationResult Print::run(Gtk::PrintOperationAction, Gtk::Window &parent_window)
 {
-    gtk_print_operation_run (_printop, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, NULL, NULL);
+    gtk_print_operation_run (_printop, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
+           parent_window.gobj(), NULL);
     return Gtk::PRINT_OPERATION_RESULT_APPLY;
 }
 
index c8ef5e6317debb28be2ea91e86a57ec8c509b34c..f6c69bdb87bddf2801422bd735f6a0b3488e3f00 100644 (file)
@@ -43,7 +43,7 @@ namespace Dialog {
 class Print {
 public:
     Print(SPDocument *doc, SPItem *base);
-    Gtk::PrintOperationResult run(Gtk::PrintOperationAction, Gtk::Window&);
+    Gtk::PrintOperationResult run(Gtk::PrintOperationAction, Gtk::Window &parent_window);
 
 protected: