X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11aac4baa6172481674b017e8529ad7ef18758fd..3e1924dd5f5744c3e2a8973de9b3e4f372b7fd85:/src/generic/prntdlgg.cpp?ds=inline diff --git a/src/generic/prntdlgg.cpp b/src/generic/prntdlgg.cpp index 3b0fb9a59a..704d6244e3 100644 --- a/src/generic/prntdlgg.cpp +++ b/src/generic/prntdlgg.cpp @@ -62,11 +62,20 @@ #include #include +#ifndef __WXUNIVERSAL__ + #if wxUSE_LIBGNOMEPRINT #include "wx/link.h" wxFORCE_LINK_MODULE(gnome_print) #endif +#if wxUSE_GTKPRINT + #include "wx/link.h" + wxFORCE_LINK_MODULE(gtk_print) +#endif + +#endif // !wxUniv + // ---------------------------------------------------------------------------- // global vars // ---------------------------------------------------------------------------- @@ -136,7 +145,8 @@ END_EVENT_TABLE() wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent, wxPrintDialogData* data) - : wxPrintDialogBase(parent, wxID_ANY, _("Print"), + : wxPrintDialogBase(GetParentForModalDialog(parent), + wxID_ANY, _("Print"), wxPoint(0,0), wxSize(600, 600), wxDEFAULT_DIALOG_STYLE | wxTAB_TRAVERSAL) @@ -149,7 +159,8 @@ wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent, wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent, wxPrintData* data) - : wxPrintDialogBase(parent, wxID_ANY, _("Print"), + : wxPrintDialogBase(GetParentForModalDialog(parent), + wxID_ANY, _("Print"), wxPoint(0,0), wxSize(600, 600), wxDEFAULT_DIALOG_STYLE | wxTAB_TRAVERSAL)