X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bbe427f8e5a2078b266e282453595b5a634d35c..e1a66d9a86ead6f7acc929449268071874054b3c:/src/gtk/icon.cpp diff --git a/src/gtk/icon.cpp b/src/gtk/icon.cpp index a372cb9869..0d82d6830b 100644 --- a/src/gtk/icon.cpp +++ b/src/gtk/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; -} -