X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fab591c5cceff41c0bedaa89af34cd039e2c44e1..9c34dd9deafaa428534b498b90799687a7dcddaa:/src/gtk/fontdlg.cpp diff --git a/src/gtk/fontdlg.cpp b/src/gtk/fontdlg.cpp index 3444d52f6a..4582a5c002 100644 --- a/src/gtk/fontdlg.cpp +++ b/src/gtk/fontdlg.cpp @@ -74,6 +74,8 @@ void gtk_fontdialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFontDialog *dial } gchar *fontname = gtk_font_selection_dialog_get_font_name(fontdlg); + + // printf( "font %s\n", fontname ); dialog->SetChosenFont(fontname); @@ -145,6 +147,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent) gtk_signal_connect( GTK_OBJECT(m_widget), "delete_event", GTK_SIGNAL_FUNC(gtk_fontdialog_delete_callback), (gpointer)this ); +#ifndef __WXGTK20__ wxFont font = m_fontData.GetInitialFont(); if( font.Ok() ) { @@ -167,6 +170,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent) wxFAIL_MSG(_T("font is ok but no native font info?")); } } +#endif return TRUE; }