X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409d5a58605cfb202774b59c3af078d3be89d7d5..92bbd64f7fc6d489fa7af1193feef7f3308da549:/src/gtk1/font.cpp?ds=inline diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 1637fb8a9a..79921f481a 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -30,9 +30,8 @@ #include -#include +#include "wx/gtk/private.h" #include -#include // ---------------------------------------------------------------------------- // constants @@ -175,6 +174,7 @@ void wxFontRefData::Init(int pointSize, } wxFontRefData::wxFontRefData( const wxFontRefData& data ) + : wxObjectRefData() { m_pointSize = data.m_pointSize; m_family = data.m_family; @@ -656,13 +656,13 @@ extern GdkFont *GtkGetDefaultGuiFont() GtkStyle *def = gtk_rc_get_style( widget ); if (def) { - g_systemDefaultGuiFont = gdk_font_ref( def->font ); + g_systemDefaultGuiFont = gdk_font_ref( GET_STYLE_FONT(def) ); } else { def = gtk_widget_get_default_style(); if (def) - g_systemDefaultGuiFont = gdk_font_ref( def->font ); + g_systemDefaultGuiFont = gdk_font_ref( GET_STYLE_FONT(def) ); } gtk_widget_destroy( widget ); }