+
+ wxFont font = m_fontData.GetInitialFont();
+ if( font.Ok() )
+ {
+ const wxNativeFontInfo *info = font.GetNativeFontInfo();
+
+ if ( info )
+ {
+
+#ifdef __WXGTK20__
+ const wxString& fontname = info->ToString();
+#else
+ const wxString& fontname = info->GetXFontName();
+ if ( !fontname )
+ font.GetInternalFont();
+#endif
+ gtk_font_selection_dialog_set_font_name(sel, wxGTK_CONV(fontname));
+ }
+ else
+ {
+ // this is not supposed to happen!
+ wxFAIL_MSG(_T("font is ok but no native font info?"));
+ }
+ }
+
+ return TRUE;