// uses the currently selected font to draw the label of the button
#define wxFNTP_USEFONT_FOR_LABEL 0x0010
-#if defined(__WXGTK24__) // since GTK > 2.4, there is GtkFontButton
+// since GTK > 2.4, there is GtkFontButton
+#if defined(__WXGTK24__) && !defined(__WXUNIVERSAL__)
#include "wx/gtk/fontpicker.h"
#define wxFontPickerWidget wxFontButton
#else
wxFont GetFont() const { return m_font; }
void SetFont(const wxFont &c) { m_font = c; }
+ // default copy ctor, assignment operator and dtor are ok
+ virtual wxEvent *Clone() const { return new wxFontPickerEvent(*this); }
+
private:
wxFont m_font;
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxFontPickerEvent)
+ DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxFontPickerEvent)
};
// ----------------------------------------------------------------------------