X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f66f6a5b3583b02c34854556eb83e3a808524ce..refs/heads/master:/src/gtk/print.cpp diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index beff9c1be2..d776a88b52 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -51,10 +51,6 @@ #include "wx/link.h" wxFORCE_LINK_THIS_MODULE(gtk_print) -#if wxUSE_LIBGNOMEPRINT -#include "wx/gtk/gnome/gprint.h" -#endif - #include "wx/gtk/private/object.h" // Useful to convert angles from/to Rad to/from Deg. @@ -64,8 +60,7 @@ static const double DEG2RAD = M_PI / 180.0; //---------------------------------------------------------------------------- // wxGtkPrintModule // Initialized when starting the app : if it successfully load the gtk-print framework, -// it uses it. If not, it falls back to gnome print (see /gtk/gnome/gprint.cpp) then -// to postscript if gnomeprint is not available. +// it uses it. If not, it falls back to Postscript. //---------------------------------------------------------------------------- class wxGtkPrintModule: public wxModule @@ -73,10 +68,6 @@ class wxGtkPrintModule: public wxModule public: wxGtkPrintModule() { -#if wxUSE_LIBGNOMEPRINT - // This module must be initialized AFTER gnomeprint's one - AddDependency(wxCLASSINFO(wxGnomePrintModule)); -#endif } bool OnInit(); void OnExit() {} @@ -1209,7 +1200,7 @@ bool wxGtkPrinterDCImpl::IsOk() const void* wxGtkPrinterDCImpl::GetCairoContext() const { - return (void*) cairo_reference( m_cairo ); + return m_cairo; } void* wxGtkPrinterDCImpl::GetHandle() const