#ifndef WX_PRECOMP
#include "wx/intl.h"
- #include "wx/wxchar.h"
+ #include "wx/crt.h"
#include "wx/dcclient.h"
#include "wx/frame.h"
#include "wx/textctrl.h"
} ;
-pascal OSStatus wxMacCarbonFontPanelHandler(EventHandlerCallRef nextHandler, EventRef event, void *userData)
+pascal OSStatus
+wxMacCarbonFontPanelHandler(EventHandlerCallRef WXUNUSED(nextHandler),
+ EventRef event,
+ void *userData)
{
OSStatus result = eventNotHandledErr ;
wxFontDialog *fontdialog = (wxFontDialog*) userData ;
RGBColor fontColor ;
if ( cEvent.GetParameter<RGBColor>(kEventParamFontColor, &fontColor) == noErr )
- fontdata.m_fontColour.FromRGBColor((WXCOLORREF*) &fontColor);
+ {
+ fontdata.m_fontColour = fontColor;
+ }
else
{
CFDictionaryRef dict ;
{
if ( tagPtr[i] == kATSUColorTag && sizePtr[i] == sizeof(RGBColor))
{
- fontdata.m_fontColour.FromRGBColor((WXCOLORREF*) valuesPtr);
+ fontdata.m_fontColour = *(RGBColor *)valuesPtr;
break ;
}
bytePtr = (UInt32*)( (UInt8*)bytePtr + sizePtr[i]);
{
}
-bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
+bool wxFontDialog::Create(wxWindow *WXUNUSED(parent), const wxFontData& data)
{
m_fontData = data;
return true ;
Refresh();
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
- GetEventHandler()->ProcessEvent(event);
+ HandleWindowEvent(event);
}
}