X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfcc39321282c5877cbb45248bb8004ced24516b..205b0c9c6aa69c02a7774846e677910bf1609a53:/src/gtk/window.cpp?ds=sidebyside diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 7d50b4b936..acc7d12ca2 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -4145,12 +4145,16 @@ void wxWindowGTK::SetWidgetStyle() GtkStyle *style = GetWidgetStyle(); -#ifndef __WXGTK20__ if (m_font != wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT )) { - SET_STYLE_FONT(style, m_font.GetInternalFont( 1.0 )); - } +#ifdef __WXGTK20__ + pango_font_description_free( style->font_desc ); + pango_font_description_copy( m_font.GetNativeFontInfo()->description ); +#else + gdk_font_unref( style->font ); + style->font = gdk_font_ref( m_font.GetInternalFont( 1.0 ) ); #endif + } if (m_foregroundColour.Ok()) {