X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b729ceb23d24fecd17f47cc3c20fb3f62839ac36..db16e5c3aae30ee4502d3e0d41eed500af365fe9:/include/wx/mac/icon.h diff --git a/include/wx/mac/icon.h b/include/wx/mac/icon.h index e24b58316e..c95b89aee2 100644 --- a/include/wx/mac/icon.h +++ b/include/wx/mac/icon.h @@ -12,7 +12,7 @@ #ifndef _WX_ICON_H_ #define _WX_ICON_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "icon.h" #endif @@ -27,18 +27,20 @@ public: wxIcon(); // Copy constructors - inline wxIcon(const wxIcon& icon) { Ref(icon); } + wxIcon(const wxIcon& icon) + : wxBitmap() + { Ref(icon); } wxIcon(const char **data); wxIcon(char **data); wxIcon(const char bits[], int width , int height ); - wxIcon(const wxString& name, long flags = wxBITMAP_TYPE_ICON_RESOURCE, + wxIcon(const wxString& name, int flags = wxBITMAP_TYPE_ICON_RESOURCE, int desiredWidth = -1, int desiredHeight = -1); ~wxIcon(); - bool LoadFile(const wxString& name, long flags /* = wxBITMAP_TYPE_ICON_RESOURCE */ , + bool LoadFile(const wxString& name, wxBitmapType flags /* = wxBITMAP_TYPE_ICON_RESOURCE */ , int desiredWidth /* = -1 */ , int desiredHeight = -1); - bool LoadFile(const wxString& name ,long flags = wxBITMAP_TYPE_ICON_RESOURCE ) + bool LoadFile(const wxString& name ,wxBitmapType flags = wxBITMAP_TYPE_ICON_RESOURCE ) { return LoadFile( name , flags , -1 , -1 ) ; } inline wxIcon& operator = (const wxIcon& icon) { if (*this == icon) return (*this); Ref(icon); return *this; }