#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/dcmemory.h"
+ #include "wx/icon.h"
+ #include "wx/math.h"
#endif
-#include "wx/math.h"
#include "wx/fontutil.h"
#include "wx/gtk/private.h"
#include "wx/module.h"
#include "wx/dynlib.h"
-#include "wx/icon.h"
#include <libgnomeprint/gnome-print.h>
#include <libgnomeprint/gnome-print-pango.h>
wxGnomePrintNativeData::~wxGnomePrintNativeData()
{
- g_object_unref (G_OBJECT (m_config));
+ g_object_unref (m_config);
}
bool wxGnomePrintNativeData::TransferTo( wxPrintData &data )
if (!dc)
{
gs_lgp->gnome_print_job_close( job );
- g_object_unref (G_OBJECT (job));
+ g_object_unref (job);
sm_lastError = wxPRINTER_ERROR;
return false;
}
if (maxPage == 0)
{
gs_lgp->gnome_print_job_close( job );
- g_object_unref (G_OBJECT (job));
+ g_object_unref (job);
sm_lastError = wxPRINTER_ERROR;
return false;
}
gs_lgp->gnome_print_job_print( job );
}
- g_object_unref (G_OBJECT (job));
+ g_object_unref (job);
delete dc;
return (sm_lastError == wxPRINTER_NO_ERROR);