+
+#ifndef __WXGTK20__
+ wxFont font = m_fontData.GetInitialFont();
+ if( font.Ok() )
+ {
+ const 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?"));
+ }
+ }
+#endif
+
+ return TRUE;