]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
Unicode compilation fixes after wxFFile change
[wxWidgets.git] / src / gtk1 / window.cpp
index 196aaf5dfcccebe8e919639091e715dc218aa636..acc7d12ca243f3efa74f6415124d6da12341e490 100644 (file)
@@ -4147,7 +4147,13 @@ void wxWindowGTK::SetWidgetStyle()
 
     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())