X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bbe427f8e5a2078b266e282453595b5a634d35c..158949492d68bd0e98fab14dabcc3fa6f6924a6d:/src/gtk/icon.cpp?ds=sidebyside diff --git a/src/gtk/icon.cpp b/src/gtk/icon.cpp index a372cb9869..776adeb423 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" @@ -45,3 +44,8 @@ wxIcon& wxIcon::operator = ( const wxIcon& icon ) return *this; } +void wxIcon::CopyFromBitmap(const wxBitmap& bmp) +{ + wxIcon *icon = (wxIcon*)(&bmp); + *this = *icon; +}