]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/app.cpp
added SpinCtrl,
[wxWidgets.git] / src / motif / app.cpp
index e3c8bb71a93641f2f2f7a5c0cbc4a71a740605b7..fd96ab7e44fd2ccfea0fa9bab1c5c34c3cea35a0 100644 (file)
@@ -352,11 +352,17 @@ void wxApp::ProcessXEvent(WXEvent* _event)
             // accelerator.
             return;
        }
+#if 1
+        // It seemed before that this hack was redundant and 
+        // key down events were being generated by wxCanvasInputEvent.
+        // But no longer - why ???
+        //
        else if (CheckForKeyDown(_event))
        {
             // We intercepted and processed the key down event
             return;
        }
+#endif        
        else
        {
             XtDispatchEvent(event);
@@ -365,6 +371,8 @@ void wxApp::ProcessXEvent(WXEvent* _event)
     }
     else if (event->type == KeyRelease)
     {
+        // TODO: work out why we still need this !  -michael
+        //
         if (CheckForKeyUp(_event))
        {
            // We intercepted and processed the key up event
@@ -755,3 +763,12 @@ wxApp::GetStdIcon(int which) const
             return wxIcon(error_xpm);
     }
 }
+
+// ----------------------------------------------------------------------------
+// accessors for C modules
+// ----------------------------------------------------------------------------
+
+extern "C" XtAppContext wxGetAppContext()
+{
+    return (XtAppContext)wxTheApp->GetAppContext();
+}