X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adc620811a415e8a715c6eac14bdc8fa096ca408..ad7922b8aaf4aea61c4a364887fc89b0548a6047:/src/gtk/print.cpp diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index aefd2c2073..d72c2a9a5e 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/gtk/print.cpp +// Name: src/gtk/print.cpp // Author: Anthony Bretaudeau // Purpose: GTK printing support // Created: 2007-08-25 @@ -36,7 +36,13 @@ #include "wx/paper.h" #include + +#if GTK_CHECK_VERSION(2,14,0) #include +#else +#include +#endif + #if wxUSE_GRAPHICS_CONTEXT #include "wx/graphics.h" @@ -51,7 +57,7 @@ wxFORCE_LINK_THIS_MODULE(gtk_print) #include "wx/gtk/private/object.h" -// Usefull to convert angles from/to Rad to/from Deg. +// Useful to convert angles from/to Rad to/from Deg. static const double RAD2DEG = 180.0 / M_PI; static const double DEG2RAD = M_PI / 180.0; @@ -661,8 +667,8 @@ int wxGtkPrintDialog::ShowModal() } else if (response == GTK_PRINT_OPERATION_RESULT_ERROR) { + wxLogError(_("Error while printing: ") + wxString(gError ? gError->message : "???")); g_error_free (gError); - wxLogError(_("Error while printing: ") + wxString::Format(_("%s"), gError->message)); return wxID_NO; // We use wxID_NO because there is no wxID_ERROR available } @@ -2207,7 +2213,7 @@ void wxGtkPrinterDCImpl::SetPrintData(const wxPrintData& data) m_printData = data; } -// overriden for wxPrinterDC Impl +// overridden for wxPrinterDC Impl wxRect wxGtkPrinterDCImpl::GetPaperRect() const {