]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/fontdlg.cpp
wxMenu Review, added Carbon Events and full OSX Support
[wxWidgets.git] / src / gtk1 / fontdlg.cpp
index 4582a5c0022fbdaa5ebd77da726096c963615d9d..3dfb008131d6bd2b6caf46d741138a183cc7325d 100644 (file)
@@ -77,7 +77,7 @@ void gtk_fontdialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFontDialog *dial
     
     // printf( "font %s\n", fontname );
 
-    dialog->SetChosenFont(fontname);
+    dialog->SetChosenFont( fontname);
 
     g_free( fontname );
 
@@ -181,7 +181,7 @@ wxFontDialog::~wxFontDialog()
 
 void wxFontDialog::SetChosenFont(const char *fontname)
 {
-    m_fontData.SetChosenFont(wxFont(fontname));
+    m_fontData.SetChosenFont(wxFont( wxString::FromAscii(fontname) ));
 }
 
 #endif // wxUSE_FONTDLG