]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_app.i
update from herbert breunung
[wxWidgets.git] / wxPython / src / _app.i
index d28c88992cb22f441c665d59d77442c0806f0a07..fc25d1c8c1e79138f3e9139782349a887c243357 100644 (file)
@@ -334,15 +334,16 @@ Python shuts down.", "");
 %} 
 
 
-DocStr(wxGetApp,
-       "Return a reference to the current wx.App object.", "");
-%inline %{
-    wxPyApp* wxGetApp() {
-        return (wxPyApp*)wxTheApp;
-    }
+DocDeclStrName(
+    wxPyApp* , wxPyGetApp(),
+    "Return a reference to the current wx.App object.", "",
+    GetApp);
+%{
+    wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
 %}
 
 
+
 //---------------------------------------------------------------------------
 // Include some extra wxApp related python code here