summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Holdsworth <joel@airwebreathe.org.uk>2008-03-21 19:31:26 +0000
committerjoelholdsworth <joelholdsworth@users.sourceforge.net>2008-03-21 19:31:26 +0000
commit8f3dfb68ddfd768e33ccd38f22627f6022fa0559 (patch)
treed4c7a80e5ec5186627c3821f9c3016f4973705d6
parentAdd a separate "javaclean" target so that it can be invoked without deleting ... (diff)
downloadinkscape-8f3dfb68ddfd768e33ccd38f22627f6022fa0559.tar.gz
inkscape-8f3dfb68ddfd768e33ccd38f22627f6022fa0559.zip
Bugfix to prevent the print dialog falling underneath the inkscape desktop windows in Win32
(bzr r5147)
-rw-r--r--src/ui/dialog/print.cpp5
-rw-r--r--src/ui/dialog/print.h2
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: