From 9c4ae52877704be366e38e5e44ff65fe9d42362c Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 25 Mar 2009 09:48:16 +0000 Subject: [PATCH] adding native icon for executables git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/artmac.cpp | 1 + src/osx/carbon/icon.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/osx/artmac.cpp b/src/osx/artmac.cpp index f5e459009d..2777353262 100644 --- a/src/osx/artmac.cpp +++ b/src/osx/artmac.cpp @@ -72,6 +72,7 @@ static wxIconBundle wxMacArtProvider_CreateIconBundle(const wxArtID& id) ART_MSGBOX(wxART_FOLDER, wxICON_FOLDER, folder) ART_MSGBOX(wxART_FOLDER_OPEN, wxICON_FOLDER_OPEN, folder_open) ART_MSGBOX(wxART_NORMAL_FILE, wxICON_NORMAL_FILE, deffile) + ART_MSGBOX(wxART_EXECUTABLE_FILE, wxICON_EXECUTABLE_FILE, exefile) ART_MSGBOX(wxART_CDROM, wxICON_CDROM, cdrom) ART_MSGBOX(wxART_FLOPPY, wxICON_FLOPPY, floppy) diff --git a/src/osx/carbon/icon.cpp b/src/osx/carbon/icon.cpp index af4c06aa0a..a28dc19090 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 ;