Widget size_chooser, style_chooser;

static void FontDialogOkayCallback(Widget w, XtPointer tag, XtPointer data)
{
    int size;
    String style;
    char fontname[200];

    /*
     * XmtChooserGetValues() is a lot like XmtChooserGetState(),
     * but note how we cast and dereference the returned address.
     */
    style = *(String *)XmtChooserGetValues(style_chooser);
    size = *(int *)XmtChooserGetValue(size_chooser);

    sprintf(fontname, "*-helvetica-%s-*-*-*-%d-*-*-*-*-*-*",
	    style, size);
    SetNewFont(fontname);
}
