X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409d5a58605cfb202774b59c3af078d3be89d7d5..4b04699b670b4ab4632229fa0264d154acd3bec1:/src/gtk/font.cpp diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index 1637fb8a9a..1fd76d1df0 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/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 ); }