X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94a09ea5d315ad552404dbea56c9c7406b5a1a5c..52a15d5b9671ee73375243a29a3009fb20d8569f:/src/gtk/settings.cpp diff --git a/src/gtk/settings.cpp b/src/gtk/settings.cpp index e2be4cd58c..d838381c99 100644 --- a/src/gtk/settings.cpp +++ b/src/gtk/settings.cpp @@ -313,9 +313,17 @@ wxFont wxSystemSettingsNative::GetFont( wxSystemFont index ) } else { - 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); } gtk_widget_destroy( widget ); #else