mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: stub out XmPrint stuff if there is no XmPrint support.
This commit is contained in:
parent
b282d3fa87
commit
7cbb2fa2a7
2 changed files with 10 additions and 0 deletions
|
@ -871,6 +871,7 @@ clearSetupData(_DtCmPrintData *pd)
|
|||
static void
|
||||
createPrintShell(Calendar *c)
|
||||
{
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
_DtCmPrintData *pd = (_DtCmPrintData *)c->print_data;
|
||||
|
||||
#ifdef GR_DEBUG
|
||||
|
@ -895,6 +896,7 @@ createPrintShell(Calendar *c)
|
|||
XtAddCallback(pd->printShell, XmNpdmNotificationCallback,
|
||||
pdm_notify_cb, (XtPointer)c);
|
||||
}
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1251,6 +1253,7 @@ report_error(Calendar *c, char *title, char *errText)
|
|||
static void
|
||||
pdm_notify_cb(Widget w, XtPointer uData, XtPointer cbData)
|
||||
{
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
XmPrintShellCallbackStruct *cbStruct =
|
||||
(XmPrintShellCallbackStruct *)cbData;
|
||||
Calendar *c = (Calendar *)uData;
|
||||
|
@ -1278,6 +1281,7 @@ pdm_notify_cb(Widget w, XtPointer uData, XtPointer cbData)
|
|||
XtFree(title);
|
||||
XtFree(errText);
|
||||
}
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1327,6 +1331,7 @@ print_cb(Widget w, XtPointer data, XtPointer cbDataP)
|
|||
static void
|
||||
print_setup_cb(Widget w, XtPointer uData, XtPointer cbData)
|
||||
{
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
Calendar *c = (Calendar *)uData;
|
||||
_DtCmPrintData *pd = (_DtCmPrintData *)c->print_data;
|
||||
DtPrintSetupCallbackStruct *cbStruct =
|
||||
|
@ -1357,6 +1362,7 @@ print_setup_cb(Widget w, XtPointer uData, XtPointer cbData)
|
|||
}
|
||||
|
||||
clearSetupData(pd);
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -2228,6 +2228,8 @@ x_open_file(Calendar *c)
|
|||
NULL, 0);
|
||||
#endif
|
||||
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
|
||||
#ifdef GR_DEBUG
|
||||
if (!inDebugMode(c))
|
||||
{
|
||||
|
@ -2262,6 +2264,8 @@ x_open_file(Calendar *c)
|
|||
#ifdef GR_DEBUG
|
||||
}
|
||||
#endif
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
|
||||
|
||||
nargs = 0;
|
||||
#ifdef SHELL_SIZE_BUG
|
||||
|
|
Loading…
Reference in a new issue