Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure the PangoFontFace type is loaded.
This works around problems with using wxFontDialog from wxPython.

Closes #16820.
  • Loading branch information
swt2c authored and vadz committed Mar 12, 2015
1 parent c4f569e commit 5d33768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gtk/fontdlg.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 5d33768

Please sign in to comment.