X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409d5a58605cfb202774b59c3af078d3be89d7d5..b1633d20d6f06a0b5a77d5208c0beddf19324f33:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 1637fb8a9a..1fd76d1df0 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 @@ -656,13 +655,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 ); }