// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#if wxUSE_FONTPICKERCTRL
+#if wxUSE_FONTPICKERCTRL
#include "wx/fontpicker.h"
// fire the colour-changed event
wxFontPickerEvent event(p, p->GetId(), p->GetSelectedFont());
- p->GetEventHandler()->ProcessEvent(event);
+ p->HandleWindowEvent(event);
}
}
}
m_widget = gtk_font_button_new();
+ g_object_ref(m_widget);
// set initial font
m_selectedFont = initial.IsOk() ? initial : *wxNORMAL_FONT;