diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-03-25 20:04:31 -0400 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-03-26 17:08:41 -0400 |
commit | b67fdbae96217bda5eecbff3706ff12a25ed2934 (patch) | |
tree | 667f1ec46b78ccd04f334384dafe9a5242e564d9 /xedit.c | |
parent | 47b6e661024970b8f3b53d9f7930b9ec77ccdbdc (diff) |
xprint: remove conditionally defined related C code
Reviewed-by: Jeremy Huddleston <jeremyhu@freedestop.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'xedit.c')
-rw-r--r-- | xedit.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -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; |