Enable choosing paper size and orientation on print dialog, see #17712

This commit is contained in:
Paul Cornett
2016-11-14 22:32:03 -08:00
parent b06c909385
commit 1b0e7c17e3
2 changed files with 17 additions and 1 deletions

View File

@@ -399,6 +399,22 @@ wxGtkPrintNativeData::~wxGtkPrintNativeData()
g_object_unref(m_config);
}
void wxGtkPrintNativeData::SetPrintJob(GtkPrintOperation* job)
{
m_job = job;
#if GTK_CHECK_VERSION(2,18,0)
if (job)
{
#ifndef __WXGTK3__
if (gtk_check_version(2,18,0) == NULL)
#endif
{
gtk_print_operation_set_embed_page_setup(job, true);
}
}
#endif
}
// Convert datas stored in m_config to a wxPrintData.
// Called by wxPrintData::ConvertFromNative().
bool wxGtkPrintNativeData::TransferTo( wxPrintData &data )