Transfer printer name to/from GTK+ native print setup dialog.

Printer name in the GTK+ dialog was neither initialized nor retrieved before.

See #12499.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-10-16 18:11:21 +00:00
parent 820ec9bbc2
commit 34b2bc598b

View File

@ -389,6 +389,9 @@ bool wxGtkPrintNativeData::TransferTo( wxPrintData &data )
data.SetPaperId( wxPAPER_FANFOLD_LGL_GERMAN);
else
data.SetPaperId(wxPAPER_NONE);
data.SetPrinterName(gtk_print_settings_get_printer(m_config));
return true;
}
@ -537,6 +540,8 @@ bool wxGtkPrintNativeData::TransferFrom( const wxPrintData &data )
default: break;
}
gtk_print_settings_set_printer(m_config, data.GetPrinterName());
return true;
}