]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
some Hildon integration work: use HildonProgram (for integration with the OS), Hildon...
[wxWidgets.git] / src / motif / control.cpp
index 13b8146af7117f15044a8e3bd7a549e5c4fc6a63..3d6cdf909c23b09509f3e5433918b363cb093933 100644 (file)
@@ -37,9 +37,6 @@ END_EVENT_TABLE()
 // Item members
 wxControl::wxControl()
 {
-    m_backgroundColour = *wxWHITE;
-    m_foregroundColour = *wxBLACK;
-
     m_inSetValue = false;
 }
 
@@ -72,10 +69,6 @@ bool wxControl::CreateControl(wxWindow *parent,
                                        validator, name ) )
         return false;
 
-    m_backgroundColour = parent->GetBackgroundColour();
-    m_foregroundColour = parent->GetForegroundColour();
-    m_font = parent->GetFont();
-
     return true;
 }
 
@@ -85,7 +78,7 @@ void wxControl::SetLabel(const wxString& label)
     if (!widget)
         return;
 
-    wxXmString label_str(wxStripMenuCodes(label));
+    wxXmString label_str(GetLabelText(label));
 
     XtVaSetValues (widget,
         XmNlabelString, label_str(),