// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "filedlg.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
wxFont font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
- if ( wxFont::GetFontTag() == (WXString) XmNfontList )
- {
- XtSetArg(args[ac], XmNbuttonFontList, font.GetFontTypeC(dpy)); ac++;
- XtSetArg(args[ac], XmNlabelFontList, font.GetFontTypeC(dpy)); ac++;
- XtSetArg(args[ac], XmNtextFontList, font.GetFontTypeC(dpy)); ac++;
- }
- else
- {
- XtSetArg(args[ac], XmNbuttonRenderTable, font.GetFontTypeC(dpy)); ac++;
- XtSetArg(args[ac], XmNlabelRenderTable, font.GetFontTypeC(dpy)); ac++;
- XtSetArg(args[ac], XmNtextRenderTable, font.GetFontTypeC(dpy)); ac++;
- }
+#if __WXMOTIF20__ && !__WXLESSTIF__
+ XtSetArg(args[ac], XmNbuttonRenderTable, font.GetFontTypeC(dpy)); ac++;
+ XtSetArg(args[ac], XmNlabelRenderTable, font.GetFontTypeC(dpy)); ac++;
+ XtSetArg(args[ac], XmNtextRenderTable, font.GetFontTypeC(dpy)); ac++;
+#else
+ XtSetArg(args[ac], XmNbuttonFontList, font.GetFontTypeC(dpy)); ac++;
+ XtSetArg(args[ac], XmNlabelFontList, font.GetFontTypeC(dpy)); ac++;
+ XtSetArg(args[ac], XmNtextFontList, font.GetFontTypeC(dpy)); ac++;
+#endif
Widget fileSel = XmCreateFileSelectionDialog(parentWidget,
- "file_selector", args, ac);
+ wxMOTIF_STR("file_selector"),
+ args, ac);
#define wxFSChild( name ) \
XmFileSelectionBoxGetChild(fileSel, name)