X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bbe427f8e5a2078b266e282453595b5a634d35c..971e47976f53665f5280d5538395cf7ac189a40e:/src/gtk1/icon.cpp diff --git a/src/gtk1/icon.cpp b/src/gtk1/icon.cpp index a372cb9869..0d82d6830b 100644 --- a/src/gtk1/icon.cpp +++ b/src/gtk1/icon.cpp @@ -7,9 +7,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "icon.h" -#endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" #include "wx/icon.h" @@ -33,15 +32,8 @@ wxIcon::wxIcon() : wxBitmap() { } -wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap() +void wxIcon::CopyFromBitmap(const wxBitmap& bmp) { - Ref(icon); + wxIcon *icon = (wxIcon*)(&bmp); + *this = *icon; } - -wxIcon& wxIcon::operator = ( const wxIcon& icon ) -{ - if (*this == icon) return (*this); - Ref(icon); - return *this; -} -