]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/icon.cpp
For consistency with the docs and with wxMSW the keycode for
[wxWidgets.git] / src / gtk / icon.cpp
index a372cb986937e65e06db475ee2835faae3b52271..776adeb423c7e036ece9217e5a2598d99f9e836b 100644 (file)
@@ -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;
+}