]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/icon.cpp
fix for discrepancies between wxNotebookEvent and wxNotebook GetSelection() results
[wxWidgets.git] / src / gtk / icon.cpp
index a372cb986937e65e06db475ee2835faae3b52271..05c1089158624aafc3057a570c22c04204fc849b 100644 (file)
@@ -45,3 +45,8 @@ wxIcon& wxIcon::operator = ( const wxIcon& icon )
     return *this;
 }
 
+void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
+{
+    wxIcon *icon = (wxIcon*)(&bmp);
+    *this = *icon;
+}