]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_icon.i
test wxString's char<->wchar_t ctors
[wxWidgets.git] / wxPython / src / _icon.i
index cfcdd02a39038d57cc1765bba38dff53960cb806..f43e09910bfe4636800405b50c94ef606ecdde25 100644 (file)
@@ -20,6 +20,8 @@
 //---------------------------------------------------------------------------
 
 
+MustHaveApp(wxIcon);
+
 class wxIcon : public wxGDIObject
 {
 public:
@@ -57,7 +59,9 @@ public:
     // wxGDIImage methods
 #ifdef __WXMSW__
     long GetHandle();
-    void SetHandle(long handle);
+    %extend {
+        void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
+    }
 #endif
     bool Ok();
     int GetWidth();