diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-09-05 15:58:10 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-09-05 15:58:10 +0000 |
commit | 0bfe30f1f8426d3e7c82459bca752530d6a1e469 (patch) | |
tree | 2e494b4882bc80ad74f39181476d95b64a340dfa /app/xterm/menu.c | |
parent | 7e6bbbf222239c48377c748a99a9996f66fe68ac (diff) |
update to xterm 246. Has been in snapshots for some time.
Diffstat (limited to 'app/xterm/menu.c')
-rw-r--r-- | app/xterm/menu.c | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/app/xterm/menu.c b/app/xterm/menu.c index a7f8ba2a1..19a1bb949 100644 --- a/app/xterm/menu.c +++ b/app/xterm/menu.c @@ -1,4 +1,4 @@ -/* $XTermId: menu.c,v 1.248 2009/03/28 17:27:57 tom Exp $ */ +/* $XTermId: menu.c,v 1.252 2009/07/03 15:01:14 tom Exp $ */ /* @@ -136,6 +136,7 @@ static void do_kill PROTO_XT_CALLBACK_ARGS; static void do_old_fkeys PROTO_XT_CALLBACK_ARGS; static void do_poponbell PROTO_XT_CALLBACK_ARGS; static void do_print PROTO_XT_CALLBACK_ARGS; +static void do_print_everything PROTO_XT_CALLBACK_ARGS; static void do_print_redir PROTO_XT_CALLBACK_ARGS; static void do_quit PROTO_XT_CALLBACK_ARGS; static void do_redraw PROTO_XT_CALLBACK_ARGS; @@ -625,7 +626,7 @@ domenu(Widget w, False); } #endif - if (!xtermHasPrinter()) { + if (!xtermHasPrinter(term)) { SetItemSensitivity(mainMenuEntries[mainMenu_print].widget, False); SetItemSensitivity(mainMenuEntries[mainMenu_print_redir].widget, @@ -935,7 +936,15 @@ do_print(Widget gw GCC_UNUSED, XtPointer closure GCC_UNUSED, XtPointer data GCC_UNUSED) { - xtermPrintScreen(True); + xtermPrintScreen(term, True); +} + +static void +do_print_everything(Widget gw GCC_UNUSED, + XtPointer closure GCC_UNUSED, + XtPointer data GCC_UNUSED) +{ + xtermPrintEverything(term); } static void @@ -943,7 +952,7 @@ do_print_redir(Widget gw GCC_UNUSED, XtPointer closure GCC_UNUSED, XtPointer data GCC_UNUSED) { - setPrinterControlMode(term->screen.printer_controlmode ? 0 : 2); + setPrinterControlMode(term, term->screen.printer_controlmode ? 0 : 2); } static void @@ -1570,7 +1579,7 @@ do_tektextlarge(Widget gw, XtPointer closure GCC_UNUSED, XtPointer data GCC_UNUSED) { - TekSetFontSize(getTekWidget(gw), tekMenu_tektextlarge); + TekSetFontSize(getTekWidget(gw), True, tekMenu_tektextlarge); } static void @@ -1578,7 +1587,7 @@ do_tektext2(Widget gw, XtPointer closure GCC_UNUSED, XtPointer data GCC_UNUSED) { - TekSetFontSize(getTekWidget(gw), tekMenu_tektext2); + TekSetFontSize(getTekWidget(gw), True, tekMenu_tektext2); } static void @@ -1586,7 +1595,7 @@ do_tektext3(Widget gw, XtPointer closure GCC_UNUSED, XtPointer data GCC_UNUSED) { - TekSetFontSize(getTekWidget(gw), tekMenu_tektext3); + TekSetFontSize(getTekWidget(gw), True, tekMenu_tektext3); } static void @@ -1594,7 +1603,7 @@ do_tektextsmall(Widget gw, XtPointer closure GCC_UNUSED, XtPointer data GCC_UNUSED) { - TekSetFontSize(getTekWidget(gw), tekMenu_tektextsmall); + TekSetFontSize(getTekWidget(gw), True, tekMenu_tektextsmall); } static void @@ -1787,6 +1796,16 @@ HandlePrintScreen(Widget w, /* ARGSUSED */ void +HandlePrintEverything(Widget w, + XEvent * event GCC_UNUSED, + String * params GCC_UNUSED, + Cardinal *param_count GCC_UNUSED) +{ + do_print_everything(w, (XtPointer) 0, (XtPointer) 0); +} + +/* ARGSUSED */ +void HandlePrintControlMode(Widget w, XEvent * event GCC_UNUSED, String * params GCC_UNUSED, @@ -2164,7 +2183,7 @@ HandleAltScreen(Widget w, Cardinal *param_count) { /* eventually want to see if sensitive or not */ - handle_vt_toggle(do_altscreen, term->screen.alternate, + handle_vt_toggle(do_altscreen, term->screen.whichBuf, params, *param_count, w); } @@ -3114,7 +3133,7 @@ update_altscreen(void) UpdateCheckbox("update_altscreen", vtMenuEntries, vtMenu_altscreen, - term->screen.alternate); + term->screen.whichBuf); } void |