mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtfile/Help: CID 88598
This commit is contained in:
parent
141bfca04e
commit
54f8982c61
1 changed files with 11 additions and 12 deletions
|
@ -498,14 +498,6 @@ MapFileTypeToHelpString(
|
||||||
return(buf);
|
return(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef old
|
|
||||||
if (miscData)
|
|
||||||
/* The DtGetActionDescription function must be modified to
|
|
||||||
accept a non-integral second parameter. (Filetypes are no
|
|
||||||
longer expressed as integers. */
|
|
||||||
desc = DtGetActionDescription(filetype, -1);
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
desc = DtDtsDataTypeToAttributeValue(filetype,
|
desc = DtDtsDataTypeToAttributeValue(filetype,
|
||||||
DtDTS_DA_DESCRIPTION,
|
DtDTS_DA_DESCRIPTION,
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -513,7 +505,14 @@ MapFileTypeToHelpString(
|
||||||
isAction = DtDtsDataTypeIsAction(filetype);
|
isAction = DtDtsDataTypeIsAction(filetype);
|
||||||
|
|
||||||
if (desc)
|
if (desc)
|
||||||
return(XtNewString(desc));
|
{
|
||||||
|
char *descptr = XtNewString(desc);
|
||||||
|
XtFree((char *)desc);
|
||||||
|
if (descptr)
|
||||||
|
return descptr;
|
||||||
|
else
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* No description found for this filetype */
|
/* No description found for this filetype */
|
||||||
if (isAction)
|
if (isAction)
|
||||||
|
|
Loading…
Reference in a new issue