]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/icon.cpp
made GetColourFromGTKWidget() more general, it is now used for all colours
[wxWidgets.git] / src / mac / carbon / icon.cpp
index 26cb83e93c2182f4317d757d7aa06d64f01e1b5f..0133e455347707e03048dcc5387f494ed4f797fd 100644 (file)
@@ -69,6 +69,12 @@ bool wxIcon::LoadFile(const wxString& filename, long type,
        return FALSE;
 }
 
+void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
+{
+    wxIcon *icon = (wxIcon*)(&bmp);
+    *this = *icon;
+}
+
 IMPLEMENT_DYNAMIC_CLASS(wxICONResourceHandler, wxBitmapHandler)
 
 bool  wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,