]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/checkbox.cpp
don't use deprecated macros
[wxWidgets.git] / src / motif / checkbox.cpp
index 79ae861a60779be52573f7c9292bab940d6ddab7..cd2b57c5b8ebb814e9dee1a03b47f286983bd377 100644 (file)
@@ -56,13 +56,12 @@ bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label,
     wxXmString text( label1 );
     
     Widget parentWidget = (Widget) parent->GetClientWidget();
-    XmFontList fontList =
-        (XmFontList) m_font.GetFontList(1.0, XtDisplay(parentWidget));
 
     m_mainWidget = (WXWidget) XtVaCreateManagedWidget ("toggle",
         xmToggleButtonWidgetClass, parentWidget,
-        XmNfontList, fontList,
+        wxFont::GetFontTag(), m_font.GetFontType(XtDisplay(parentWidget)),
         XmNlabelString, text(),
+        XmNrecomputeSize, False,
         NULL);
     
     XtAddCallback( (Widget)m_mainWidget,