- const gchar *font_name =
- _gtk_rc_context_get_default_font_name(gtk_settings_get_default());
- gs_objects.m_fontSystem = wxFont(wxString::FromAscii(font_name));
+ GtkSettings *settings = gtk_settings_get_default();
+ gchar *font_name = NULL;
+ g_object_get ( settings,
+ "gtk-font-name",
+ &font_name,
+ NULL);
+ if (!font_name)
+ gs_objects.m_fontSystem = wxFont( 12, wxSWISS, wxNORMAL, wxNORMAL );
+ else
+ gs_objects.m_fontSystem = wxFont(wxString::FromAscii(font_name));
+ g_free (font_name);