#include <strings.h>
-#include <gdk/gdk.h>
+#include "wx/gtk/private.h"
#include <gdk/gdkprivate.h>
-#include <gtk/gtk.h>
// ----------------------------------------------------------------------------
// constants
}
wxFontRefData::wxFontRefData( const wxFontRefData& data )
+ : wxObjectRefData()
{
m_pointSize = data.m_pointSize;
m_family = data.m_family;
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 );
}