- // strange way to internationalize
- gtk_label_set( GTK_LABEL( GTK_BUTTON(sel->cancel_button)->child ), wxConvCurrent->cWX2MB(_("Cancel")) );
+ wxFont font = m_fontData.GetInitialFont();
+ if( font.IsOk() )
+ {
+ const wxNativeFontInfo *info = font.GetNativeFontInfo();
+
+ if ( info )
+ {
+#if GTK_CHECK_VERSION(3,2,0)
+ if (gtk_check_version(3,2,0) == NULL)
+ gtk_font_chooser_set_font_desc(GTK_FONT_CHOOSER(m_widget), info->description);
+ else
+#endif
+ {
+ const wxString& fontname = info->ToString();
+ GtkFontSelectionDialog* sel = GTK_FONT_SELECTION_DIALOG(m_widget);
+ gtk_font_selection_dialog_set_font_name(sel, wxGTK_CONV(fontname));
+ }
+ }
+ else
+ {
+ // this is not supposed to happen!
+ wxFAIL_MSG(wxT("font is ok but no native font info?"));
+ }
+ }