]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
toplevel event handler exposed
[wxWidgets.git] / src / motif / control.cpp
index c972668ad121179a385afb368493ddd65fc4e4e1..e6d45853c9b0f832f4b3456cd7fb0a30aea52207 100644 (file)
@@ -40,10 +40,6 @@ wxControl::wxControl()
     m_backgroundColour = *wxWHITE;
     m_foregroundColour = *wxBLACK;
 
-#if WXWIN_COMPATIBILITY
-    m_callback = 0;
-#endif // WXWIN_COMPATIBILITY
-
     m_inSetValue = FALSE;
 }
 
@@ -103,7 +99,7 @@ wxString wxControl::GetLabel() const
     if (!widget)
         return wxEmptyString;
 
-    XmString text;
+    XmString text = NULL;
     XtVaGetValues (widget,
         XmNlabelString, &text,
         NULL);
@@ -113,15 +109,5 @@ wxString wxControl::GetLabel() const
 
 bool wxControl::ProcessCommand(wxCommandEvent & event)
 {
-#if WXWIN_COMPATIBILITY
-    if ( m_callback )
-    {
-        (void)(*m_callback)(this, event);
-
-        return TRUE;
-    }
-    else
-#endif // WXWIN_COMPATIBILITY
-
     return GetEventHandler()->ProcessEvent(event);
 }