Ensure the PangoFontFace type is loaded.

This works around problems with using wxFontDialog from wxPython.

Closes #16820.
This commit is contained in:
Scott Talbert
2015-03-03 23:33:00 -05:00
committed by Vadim Zeitlin
parent 7f0963dcf7
commit 54e653d044

View File

@@ -78,6 +78,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent)
gtk_parent = GTK_WINDOW(parent->m_widget);
#if GTK_CHECK_VERSION(3,2,0)
g_type_ensure(PANGO_TYPE_FONT_FACE);
if (gtk_check_version(3,2,0) == NULL)
m_widget = gtk_font_chooser_dialog_new(wxGTK_CONV(message), gtk_parent);
else