Remove the macro XmStringGenerate.

This commit is contained in:
Mid Favila 2022-08-21 21:47:17 -04:00
parent 48e0af8465
commit 9977646e06
3 changed files with 5 additions and 14 deletions

View File

@ -36,7 +36,7 @@ void createAboutBox(Widget parent)
%s\n\n\ %s\n\n\
Nebula IRC is distributed under BSD.",\ Nebula IRC is distributed under BSD.",\
CLIENT_VERSION, sysState.systemInfo); CLIENT_VERSION, sysState.systemInfo);
theXmString = XM_STRING_GEN_COMP(theString); theXmString = XmStringGenerate(theString, XmFONTLIST_DEFAULT_TAG, XmCHARSET_TEXT, NULL);
theXmString2 = XmStringCreateLocalized("About"); theXmString2 = XmStringCreateLocalized("About");
XtSetArg(args[0], XmNdialogTitle, theXmString2); XtSetArg(args[0], XmNdialogTitle, theXmString2);

View File

@ -56,13 +56,4 @@ void rmvFdToSelectMask(int fd);
void quitApplication(); void quitApplication();
void appendText(char *msg); void appendText(char *msg);
/* remember to check for XmFONTLIST_DEFAULT_TAG when used */
#ifdef HAVE_XMSTRINGGENERATE
#define XM_STRING_GEN_COMP(str)\
XmStringGenerate(str, XmFONTLIST_DEFAULT_TAG, XmCHARSET_TEXT, NULL);
#else
#define XM_STRING_GEN_COMP(str)\
XmStringCreateLtoR(str, XmFONTLIST_DEFAULT_TAG);
#endif
#include "copyright.h" #include "copyright.h"

View File

@ -89,7 +89,8 @@ void helpButtStartupCbk()
argcount = 0; argcount = 0;
theXmString = XmStringCreateLocalized("Help"); theXmString = XmStringCreateLocalized("Help");
XtSetArg(args[argcount], XmNdialogTitle, theXmString); argcount++; XtSetArg(args[argcount], XmNdialogTitle, theXmString); argcount++;
theXmString2 = XM_STRING_GEN_COMP("Set nickname and name you want to use.\n\nEnter the server you want to connect to."); theXmString2 = XmStringGenerate("Set nickname and name you want to use.\n\nEnter the server you want to connect to.",
XmFONTLIST_DEFAULT_TAG, XmCHARSET_TEXT, NULL);
XtSetArg(args[argcount], XmNmessageString, theXmString2); argcount++; XtSetArg(args[argcount], XmNmessageString, theXmString2); argcount++;
XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++; XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++;
startupPrefsHelpDlgBox = XmCreateInformationDialog(startPrefDiag, "help", args, argcount); startupPrefsHelpDlgBox = XmCreateInformationDialog(startPrefDiag, "help", args, argcount);
@ -326,9 +327,8 @@ void helpButtPrefCbk()
argcount = 0; argcount = 0;
theXmString = XmStringCreateLocalized("Help"); theXmString = XmStringCreateLocalized("Help");
XtSetArg(args[argcount], XmNdialogTitle, theXmString); argcount++; XtSetArg(args[argcount], XmNdialogTitle, theXmString); argcount++;
theXmString2 = XM_STRING_GEN_COMP("This panel sets the startup preferences.\n\ theXmString2 = XmStringGenerate("This panel provides easy access to preferences.\nOK will save them to your dotfile.",
Ok will save them to the user\'s defaults.\n\n\ XmFONTLIST_DEFAULT_TAG, XmCHARSET_TEXT, NULL);
Set nickname and name you want to use.\nEnter the server you want to connect to.");
XtSetArg(args[argcount], XmNmessageString, theXmString2); argcount++; XtSetArg(args[argcount], XmNmessageString, theXmString2); argcount++;
XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++; XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++;
startupPrefsHelpDlgBox = XmCreateInformationDialog(startPrefDiag, "help", args, argcount); startupPrefsHelpDlgBox = XmCreateInformationDialog(startPrefDiag, "help", args, argcount);