From c2d9740ab46d2dfcb0ed797e9c42bb418ca41c57 Mon Sep 17 00:00:00 2001 From: joelholdsworth Date: Fri, 21 Mar 2008 19:31:26 +0000 Subject: [PATCH] Bugfix to prevent the print dialog falling underneath the inkscape desktop windows in Win32 --- src/ui/dialog/print.cpp | 5 +++-- src/ui/dialog/print.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui/dialog/print.cpp b/src/ui/dialog/print.cpp index 52ff07ee6..9b6cc7543 100644 --- a/src/ui/dialog/print.cpp +++ b/src/ui/dialog/print.cpp @@ -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; } diff --git a/src/ui/dialog/print.h b/src/ui/dialog/print.h index c8ef5e631..f6c69bdb8 100644 --- a/src/ui/dialog/print.h +++ b/src/ui/dialog/print.h @@ -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: -- 2.30.2