diff options
Diffstat (limited to 'Build/source/texk/xdvik/gui')
-rw-r--r-- | Build/source/texk/xdvik/gui/print-dialog.c | 32 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/print-log.c | 12 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/search-dialog.c | 3 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/xicon.c | 3 |
4 files changed, 25 insertions, 25 deletions
diff --git a/Build/source/texk/xdvik/gui/print-dialog.c b/Build/source/texk/xdvik/gui/print-dialog.c index 4724513f0ca..79c2b34c887 100644 --- a/Build/source/texk/xdvik/gui/print-dialog.c +++ b/Build/source/texk/xdvik/gui/print-dialog.c @@ -1182,10 +1182,8 @@ xaw_create_dialog(struct save_or_print_info *info) Widget form, paned, box; Widget dummy_label_form, dummy_pages_form; /* dummy forms to get indentation consistent */ Widget save_to_file_form; - Widget dest_label; Widget print_to_printer_form, print_to_file_form, dvips_options_form; Widget dvips_options_label; - Widget range_label; Widget page_range_form; Widget range_marked_form; Widget range_from_to_form; @@ -1259,11 +1257,11 @@ xaw_create_dialog(struct save_or_print_info *info) XtNborderWidth, 0, HORIZONTAL_RESIZING_YES, NULL); - dest_label = XtVaCreateManagedWidget("print_to", labelWidgetClass, dummy_label_form, - XtNlabel, "Print to: ", - XtNborderWidth, 0, - HORIZONTAL_RESIZING_NO, - NULL); + XtVaCreateManagedWidget("print_to", labelWidgetClass, dummy_label_form, + XtNlabel, "Print to: ", + XtNborderWidth, 0, + HORIZONTAL_RESIZING_NO, + NULL); print_to_printer_form = XtVaCreateManagedWidget("print_to_printer_form", formWidgetClass, form, XtNresizable, True, @@ -1365,11 +1363,11 @@ xaw_create_dialog(struct save_or_print_info *info) XtNborderWidth, 0, HORIZONTAL_RESIZING_YES, NULL); - dest_label = XtVaCreateManagedWidget("save_as", labelWidgetClass, dummy_label_form, - XtNlabel, "Save as: ", - XtNborderWidth, 0, - HORIZONTAL_RESIZING_NO, - NULL); + XtVaCreateManagedWidget("save_as", labelWidgetClass, dummy_label_form, + XtNlabel, "Save as: ", + XtNborderWidth, 0, + HORIZONTAL_RESIZING_NO, + NULL); save_to_file_form = XtVaCreateManagedWidget("save_to_file_form", formWidgetClass, form, XtNborderWidth, 0, XtNfromVert, dummy_label_form, @@ -1552,11 +1550,11 @@ xaw_create_dialog(struct save_or_print_info *info) HORIZONTAL_RESIZING_NO, NULL); - range_label = XtVaCreateManagedWidget("range_lab", labelWidgetClass, dummy_pages_form, - XtNlabel, "Pages:", - XtNborderWidth, 0, - HORIZONTAL_RESIZING_NO, - NULL); + XtVaCreateManagedWidget("range_lab", labelWidgetClass, dummy_pages_form, + XtNlabel, "Pages:", + XtNborderWidth, 0, + HORIZONTAL_RESIZING_NO, + NULL); page_range_form = XtVaCreateManagedWidget(Xdvi_PAGE_RANGE_FORM_NAME, formWidgetClass, form, XtNborderWidth, 0, diff --git a/Build/source/texk/xdvik/gui/print-log.c b/Build/source/texk/xdvik/gui/print-log.c index 62e729fbe19..264a3eacf47 100644 --- a/Build/source/texk/xdvik/gui/print-log.c +++ b/Build/source/texk/xdvik/gui/print-log.c @@ -716,7 +716,6 @@ static void printlog_act_cancel_or_destroy(Widget w, XEvent *event, String *params, Cardinal *num_params) { void *ptr; - struct save_or_print_info *info; UNUSED(w); UNUSED(event); @@ -726,10 +725,15 @@ printlog_act_cancel_or_destroy(Widget w, XEvent *event, String *params, Cardinal return; } sscanf(*params, "%p", &ptr); - info = (struct save_or_print_info *)ptr; cb_printlog_act_cancel_or_destroy(w, (XtPointer)ptr, NULL); - /* ASSERT(info->callbacks != NULL && info->callbacks->cb_cancel != NULL, "Callback not initialized"); */ - /* info->callbacks->cb_cancel(w, info, NULL); */ +#if 0 + { + struct save_or_print_info *info = (struct save_or_print_info *)ptr; + + ASSERT(info->callbacks != NULL && info->callbacks->cb_cancel != NULL, "Callback not initialized"); + info->callbacks->cb_cancel(w, info, NULL); + } +#endif } diff --git a/Build/source/texk/xdvik/gui/search-dialog.c b/Build/source/texk/xdvik/gui/search-dialog.c index 895db86480c..5e1a69792a0 100644 --- a/Build/source/texk/xdvik/gui/search-dialog.c +++ b/Build/source/texk/xdvik/gui/search-dialog.c @@ -659,7 +659,6 @@ xaw_search_go(Widget w, XEvent *event, String *params, Cardinal *num_params) void *ptr; char *searchterm = NULL; Widget button, input; - XtIntervalId timeout; UNUSED(w); @@ -696,7 +695,7 @@ xaw_search_go(Widget w, XEvent *event, String *params, Cardinal *num_params) XtCallActionProc(button, "set", event, NULL, 0); XtCallActionProc(button, "notify", event, NULL, 0); XSync(DISP, False); - timeout = XtAppAddTimeOut(globals.app, 150, xaw_unset_button, (XtPointer)button); + XtAppAddTimeOut(globals.app, 150, xaw_unset_button, (XtPointer)button); } diff --git a/Build/source/texk/xdvik/gui/xicon.c b/Build/source/texk/xdvik/gui/xicon.c index 15faa32442a..d0221997b36 100644 --- a/Build/source/texk/xdvik/gui/xicon.c +++ b/Build/source/texk/xdvik/gui/xicon.c @@ -107,7 +107,6 @@ add_icon(Widget top_level, XIconSize *size; int number_sizes; Display *dsp; - Screen *scr; XpmAttributes attr; UNUSED(xdvi_bits); @@ -127,7 +126,7 @@ add_icon(Widget top_level, } dsp = XtDisplay(top_level); - scr = XtScreen(top_level); + XtScreen(top_level); attr.valuemask = 0L; attr.valuemask = XpmCloseness | XpmReturnPixels | XpmColormap | XpmDepth | XpmVisual; |