From b67fdbae96217bda5eecbff3706ff12a25ed2934 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Thu, 25 Mar 2010 20:04:31 -0400 Subject: xprint: remove conditionally defined related C code Reviewed-by: Jeremy Huddleston Signed-off-by: Gaetan Nadon --- xedit.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'xedit.c') diff --git a/xedit.c b/xedit.c index dcb031a..f7a8b68 100644 --- a/xedit.c +++ b/xedit.c @@ -40,9 +40,6 @@ static XtActionsRec actions[] = { {"quit", QuitAction}, {"save-file", SaveFile}, {"load-file", LoadFile}, -#ifdef INCLUDE_XPRINT_SUPPORT -{"print-file", PrintFile}, -#endif /* INCLUDE_XPRINT_SUPPORT */ {"find-file", FindFile}, {"cancel-find-file", CancelFindFile}, {"file-completion", FileCompletion}, @@ -118,13 +115,6 @@ static XtResource resources[] = { #undef Offset -#ifdef INCLUDE_XPRINT_SUPPORT -String fallback_resources[] = { - "*international: True", /* set this globally for ALL widgets to avoid wiered crashes */ - NULL -}; -#endif - int main(int argc, char *argv[]) { @@ -141,15 +131,8 @@ main(int argc, char *argv[]) show_dir = FALSE; first_item = NULL; -#ifdef INCLUDE_XPRINT_SUPPORT - XtSetLanguageProc(NULL, NULL, NULL); -#endif topwindow = XtAppInitialize(&appcon, "Xedit", NULL, 0, &argc, argv, -#ifdef INCLUDE_XPRINT_SUPPORT - fallback_resources, -#else NULL, -#endif NULL, 0); XtAppAddActions(appcon, actions, XtNumber(actions)); @@ -345,9 +328,6 @@ makeButtonsAndBoxes(Widget parent) MakeCommandButton(b_row, "quit", DoQuit); MakeCommandButton(b_row, "save", DoSave); MakeCommandButton(b_row, "load", DoLoad); -#ifdef INCLUDE_XPRINT_SUPPORT - MakeCommandButton(b_row, "print", DoPrint); -#endif /* INCLUDE_XPRINT_SUPPORT */ filenamewindow = MakeStringBox(b_row, "filename", NULL); } hintswindow = XtCreateManagedWidget("bc_label", labelWidgetClass, @@ -393,14 +373,10 @@ makeButtonsAndBoxes(Widget parent) textwindow = XtCreateManagedWidget(editWindow, asciiTextWidgetClass, vpanes[0], arglist, num_args); -#ifdef INCLUDE_XPRINT_SUPPORT - international = True; -#else /* Get international resource value form the textwindow */ num_args = 0; XtSetArg(arglist[num_args], XtNinternational, &international); ++num_args; XtGetValues(textwindow, arglist, num_args); -#endif num_args = 0; XtSetArg(arglist[num_args], XtNtype, XawAsciiFile); ++num_args; -- cgit v1.2.3