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