X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/691745ab412824d74d036930ad69accbe37d97b4..refs/heads/master:/src/gtk/print.cpp?ds=sidebyside diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index 9b7e7a2ca0..d776a88b52 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -3,7 +3,6 @@ // Author: Anthony Bretaudeau // Purpose: GTK printing support // Created: 2007-08-25 -// RCS-ID: $Id$ // Copyright: (c) 2007 wxWidgets development team // Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// @@ -52,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. @@ -65,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 @@ -74,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() {} @@ -1210,7 +1200,7 @@ bool wxGtkPrinterDCImpl::IsOk() const void* wxGtkPrinterDCImpl::GetCairoContext() const { - return (void*) cairo_reference( m_cairo ); + return m_cairo; } void* wxGtkPrinterDCImpl::GetHandle() const