X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/910e9b3be4d63ae8901dad154af1b6b6bdf5e56b..35d85392ff011bc8d24b036ede54e69ab557ed32:/src/osx/carbon/icon.cpp diff --git a/src/osx/carbon/icon.cpp b/src/osx/carbon/icon.cpp index 704608f33e..37c815e24d 100644 --- a/src/osx/carbon/icon.cpp +++ b/src/osx/carbon/icon.cpp @@ -203,6 +203,10 @@ bool wxIcon::LoadFile( { theId = kGenericDocumentIcon ; } + else if ( filename == wxT("wxICON_EXECUTABLE_FILE") ) + { + theId = kGenericApplicationIcon ; + } else if ( filename == wxT("wxICON_CDROM") ) { theId = kGenericCDROMIcon ; @@ -221,7 +225,7 @@ bool wxIcon::LoadFile( } else if ( filename == wxT("wxICON_DELETE") ) { - theId = kTrashIcon ; + theId = kToolbarDeleteIcon ; } else if ( filename == wxT("wxICON_GO_BACK") ) { @@ -233,11 +237,7 @@ bool wxIcon::LoadFile( } else if ( filename == wxT("wxICON_GO_HOME") ) { - theId = kUserFolderIcon ; - } - else if ( filename == wxT("wxICON_HELP_FOLDER") ) - { - theId = kHelpFolderIcon ; + theId = kToolbarHomeIcon ; } else if ( filename == wxT("wxICON_HELP_SETTINGS") ) { @@ -247,10 +247,6 @@ bool wxIcon::LoadFile( { theId = kGenericDocumentIcon ; } - else if ( filename == wxT("wxICON_PRINT") ) - { - theId = kPrintMonitorFolderIcon ; - } else { IconRef iconRef = NULL ; @@ -338,7 +334,7 @@ bool wxIcon::LoadFile( #endif } } - return true ; + return false; } void wxIcon::CopyFromBitmap( const wxBitmap& bmp ) @@ -357,9 +353,11 @@ bool wxICONResourceHandler::LoadFile( int desiredWidth, int desiredHeight ) { wxIcon icon ; - icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) ; - bitmap->CopyFromIcon( icon ) ; - - return bitmap->Ok() ; + if ( icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) ) + { + bitmap->CopyFromIcon( icon ) ; + return bitmap->Ok() ; + } + return false; }