-#ifdef __WXGTK20__
- if ( !style->font_desc )
- style = gtk_widget_get_default_style();
- if ( style && style->font_desc )
- {
- wxNativeFontInfo info;
- info.description = style->font_desc;
- attr.font = wxFont(info);
- }
- else
- {
- GtkSettings *settings = gtk_settings_get_default();
- gchar *font_name = NULL;
- g_object_get ( settings,
- "gtk-font-name",
- &font_name,
- NULL);
- if (!font_name)
- attr.font = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
- else
- attr.font = wxFont(wxString::FromAscii(font_name));
- g_free (font_name);
- }
-#else