No changes, just fix typos in comments in wxOSX files.
Closes #14549, #14552. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1634,7 +1634,7 @@ void wxMacDataViewDataBrowserListViewControl::DataBrowserItemNotificationProc(Da
|
|||||||
{
|
{
|
||||||
columnPtr->SetSortOrder(!(columnPtr->IsSortOrderAscending()));
|
columnPtr->SetSortOrder(!(columnPtr->IsSortOrderAscending()));
|
||||||
// initialize wxWidget event:
|
// initialize wxWidget event:
|
||||||
wxDataViewEvent dataViewEvent(wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED,dataViewCtrlPtr->GetId()); // variable defintion
|
wxDataViewEvent dataViewEvent(wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED,dataViewCtrlPtr->GetId()); // variable definition
|
||||||
|
|
||||||
dataViewEvent.SetEventObject(dataViewCtrlPtr);
|
dataViewEvent.SetEventObject(dataViewCtrlPtr);
|
||||||
dataViewEvent.SetColumn(columnIndex);
|
dataViewEvent.SetColumn(columnIndex);
|
||||||
|
@@ -381,7 +381,7 @@ bool wxIcon::LoadIconFromFile(const wxString& filename, int desiredWidth, int de
|
|||||||
|
|
||||||
if( err == noErr )
|
if( err == noErr )
|
||||||
{
|
{
|
||||||
// If everthing is OK, assign m_refData
|
// If everything is OK, assign m_refData
|
||||||
m_refData = new wxIconRefData( (WXHICON) iconRef, desiredWidth, desiredHeight );
|
m_refData = new wxIconRefData( (WXHICON) iconRef, desiredWidth, desiredHeight );
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
|
@@ -630,7 +630,7 @@ void wxMimeTypesManagerImpl::ClearData()
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Q) Iterating through the map - why does it use if (err == noErr) instead of just asserting?
|
// Q) Iterating through the map - why does it use if (err == noErr) instead of just asserting?
|
||||||
// A) Some intermediate indexes are bad while subsequent ones may be good. Its wierd, I know.
|
// A) Some intermediate indexes are bad while subsequent ones may be good. Its weird, I know.
|
||||||
//
|
//
|
||||||
|
|
||||||
// extension -> file type
|
// extension -> file type
|
||||||
|
@@ -48,7 +48,7 @@ wxWidgetImplType* wxWidgetImpl::CreateSlider( wxWindowMac* wxpeer,
|
|||||||
if ( style & wxSL_AUTOTICKS )
|
if ( style & wxSL_AUTOTICKS )
|
||||||
tickMarks = (maximum - minimum) + 1; // +1 for the 0 value
|
tickMarks = (maximum - minimum) + 1; // +1 for the 0 value
|
||||||
|
|
||||||
// keep the number of tickmarks from becoming unwieldly, therefore below it is ok to cast
|
// keep the number of tickmarks from becoming unwieldy, therefore below it is ok to cast
|
||||||
// it to a UInt16
|
// it to a UInt16
|
||||||
while (tickMarks > 20)
|
while (tickMarks > 20)
|
||||||
tickMarks /= 5;
|
tickMarks /= 5;
|
||||||
|
@@ -241,7 +241,7 @@ wxDockEventHandler(EventHandlerCallRef WXUNUSED(inHandlerCallRef),
|
|||||||
// Performs a top-to-bottom copy of the input menu and all of its
|
// Performs a top-to-bottom copy of the input menu and all of its
|
||||||
// submenus.
|
// submenus.
|
||||||
//
|
//
|
||||||
// This is mostly needed for 2.4 compatability. However wxPython and others
|
// This is mostly needed for 2.4 compatibility. However wxPython and others
|
||||||
// still use this way of setting the taskbarmenu.
|
// still use this way of setting the taskbarmenu.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
wxMenu * wxDeepCopyMenu( wxMenu *menu )
|
wxMenu * wxDeepCopyMenu( wxMenu *menu )
|
||||||
@@ -463,7 +463,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon, wxEvtHandler)
|
|||||||
//
|
//
|
||||||
// Note that we only support DOCK currently as others require cocoa and
|
// Note that we only support DOCK currently as others require cocoa and
|
||||||
// also some require hacks and other such things. (MenuExtras are
|
// also some require hacks and other such things. (MenuExtras are
|
||||||
// actually seperate programs that also require a special undocumented id
|
// actually separate programs that also require a special undocumented id
|
||||||
// hack and other such fun stuff).
|
// hack and other such fun stuff).
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
wxTaskBarIcon::wxTaskBarIcon(wxTaskBarIconType WXUNUSED_UNLESS_DEBUG(nType))
|
wxTaskBarIcon::wxTaskBarIcon(wxTaskBarIconType WXUNUSED_UNLESS_DEBUG(nType))
|
||||||
|
@@ -664,7 +664,7 @@ bool wxThreadInternal::Create( wxThread *thread, unsigned int stackSize )
|
|||||||
OSStatus err = MPCreateQueue( &m_notifyQueueId );
|
OSStatus err = MPCreateQueue( &m_notifyQueueId );
|
||||||
if (err != noErr)
|
if (err != noErr)
|
||||||
{
|
{
|
||||||
wxLogSysError( wxT("Cant create the thread event queue") );
|
wxLogSysError( wxT("Can't create the thread event queue") );
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -1120,7 +1120,7 @@ bool wxToolBar::MacInstallNativeToolbar(bool usesNative)
|
|||||||
// which we don't want in this case
|
// which we don't want in this case
|
||||||
wxSize sz = GetParent()->GetSize();
|
wxSize sz = GetParent()->GetSize();
|
||||||
ShowHideWindowToolbar( tlw, true, false );
|
ShowHideWindowToolbar( tlw, true, false );
|
||||||
// Restore the orginal size
|
// Restore the original size
|
||||||
GetParent()->SetSize( sz );
|
GetParent()->SetSize( sz );
|
||||||
|
|
||||||
ChangeWindowAttributes( tlw, kWindowToolbarButtonAttribute, 0 );
|
ChangeWindowAttributes( tlw, kWindowToolbarButtonAttribute, 0 );
|
||||||
|
@@ -97,7 +97,7 @@ bool wxHIDDevice::Create (int nClass, int nType, int nDev)
|
|||||||
CFRelease(pClass);
|
CFRelease(pClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Now get the maching services
|
//Now get the matching services
|
||||||
io_iterator_t pIterator;
|
io_iterator_t pIterator;
|
||||||
if( IOServiceGetMatchingServices(m_pPort,
|
if( IOServiceGetMatchingServices(m_pPort,
|
||||||
pDictionary, &pIterator) != kIOReturnSuccess )
|
pDictionary, &pIterator) != kIOReturnSuccess )
|
||||||
@@ -261,7 +261,7 @@ size_t wxHIDDevice::GetCount (int nClass, int nType)
|
|||||||
CFRelease(pClass);
|
CFRelease(pClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Now get the maching services
|
//Now get the matching services
|
||||||
io_iterator_t pIterator;
|
io_iterator_t pIterator;
|
||||||
if( IOServiceGetMatchingServices(pPort,
|
if( IOServiceGetMatchingServices(pPort,
|
||||||
pDictionary, &pIterator) != kIOReturnSuccess )
|
pDictionary, &pIterator) != kIOReturnSuccess )
|
||||||
|
@@ -782,7 +782,7 @@ void* wxJoystickThread::Entry()
|
|||||||
//
|
//
|
||||||
// This is where the REAL dirty work gets done.
|
// This is where the REAL dirty work gets done.
|
||||||
//
|
//
|
||||||
// 1) Loops through each event the queue has recieved
|
// 1) Loops through each event the queue has received
|
||||||
// 2) First, checks if the thread that is running the loop for
|
// 2) First, checks if the thread that is running the loop for
|
||||||
// the polling has ended - if so it breaks out
|
// the polling has ended - if so it breaks out
|
||||||
// 3) Next, it checks if there was an error getting this event from
|
// 3) Next, it checks if there was an error getting this event from
|
||||||
|
@@ -244,7 +244,7 @@ wxMimeTypesManagerImpl::~wxMimeTypesManagerImpl()
|
|||||||
// Init / shutdown functions
|
// Init / shutdown functions
|
||||||
//
|
//
|
||||||
// The Launch Services / UTI API provides no helpful way of getting a list
|
// The Launch Services / UTI API provides no helpful way of getting a list
|
||||||
// of all registered types. Instead the API is focused arround looking up
|
// of all registered types. Instead the API is focused around looking up
|
||||||
// information for a particular file type once you already have some
|
// information for a particular file type once you already have some
|
||||||
// identifying piece of information. In order to get a list of registered
|
// identifying piece of information. In order to get a list of registered
|
||||||
// types it would first be necessary to get a list of all bundles exporting
|
// types it would first be necessary to get a list of all bundles exporting
|
||||||
|
Reference in New Issue
Block a user