]> git.saurik.com Git - wxWidgets.git/commitdiff
adding native icon for executables
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 25 Mar 2009 09:48:16 +0000 (09:48 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 25 Mar 2009 09:48:16 +0000 (09:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/artmac.cpp
src/osx/carbon/icon.cpp

index f5e459009d45b138bd43e091690e09a2369ee00b..2777353262ee41502b361445e30cb390aefbdd63 100644 (file)
@@ -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) 
index af4c06aa0a786bc7b9f06eb9670c10ae0607883e..a28dc190908a84e498159de6f998d7085b67f4bf 100644 (file)
@@ -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 ;