- // 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.Ok() )
+ {
+ const wxNativeFontInfo *info = font.GetNativeFontInfo();
+
+ if ( info )
+ {
+
+ const wxString& fontname = info->ToString();
+ 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?"));
+ }
+ }