From: kseitz Date: Thu, 1 Aug 2002 01:33:46 +0000 (+0000) Subject: From Mo DeJong X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6c9c1ebc7107e96e2e162c51ae04e70af4704f4b;p=pf3gnuchains%2Fsourceware.git From Mo DeJong * generic/tkText.c (ExecSyncCmd): Remove -synccommand option from Tk text widget. This local modification was used by an very old version of Source-Navigator, but is no longer needed. Remove ExecSyncCmd function. * generic/tkText.h (TkText): Remove SyncCmd member. * library/msgbox.tcl (tkMessageBox): Remove unused -modal option. This was a local mod to tk. * tests/text.test: Add default value for -tabsize. This is a local mod to tk. * tests/wm.test: Fixup iconwindow error messages. --- diff --git a/tk/ChangeLog b/tk/ChangeLog index 25be205f0a..5d1be6d227 100644 --- a/tk/ChangeLog +++ b/tk/ChangeLog @@ -1,3 +1,18 @@ +2002-07-31 Keith Seitz + + From Mo DeJong + * generic/tkText.c (ExecSyncCmd): + Remove -synccommand option from Tk text widget. + This local modification was used by an very old + version of Source-Navigator, but is no longer + needed. Remove ExecSyncCmd function. + * generic/tkText.h (TkText): Remove SyncCmd member. + * library/msgbox.tcl (tkMessageBox): Remove unused + -modal option. This was a local mod to tk. + * tests/text.test: Add default value for -tabsize. + This is a local mod to tk. + * tests/wm.test: Fixup iconwindow error messages. + 2002-01-24 DJ Delorie * xlib/X11/Xutil.h (XEmptyRegion): Returns Bool. diff --git a/tk/generic/tkText.c b/tk/generic/tkText.c index 560c0260d9..fe9c6b6c0c 100644 --- a/tk/generic/tkText.c +++ b/tk/generic/tkText.c @@ -139,15 +139,10 @@ static Tk_ConfigSpec configSpecs[] = { {TK_CONFIG_STRING, "-yscrollcommand", "yScrollCommand", "ScrollCommand", DEF_TEXT_YSCROLL_COMMAND, Tk_Offset(TkText, yScrollCmd), TK_CONFIG_NULL_OK}, - - {TK_CONFIG_STRING, "-synccommand", "syncCommand", "SyncCommand", - DEF_TEXT_YSCROLL_COMMAND, Tk_Offset(TkText, SyncCmd), - TK_CONFIG_NULL_OK}, - - + /* Red Hat Local */ {TK_CONFIG_INT, "-tabsize", "tabSize", "TabSize", DEF_TEXT_TAB_SIZE, Tk_Offset(TkText, tabsize), 0}, - + /* End Red Hat Local */ {TK_CONFIG_END, (char *) NULL, (char *) NULL, (char *) NULL, (char *) NULL, 0, 0} }; @@ -438,7 +433,6 @@ Tk_TextCmd(clientData, interp, argc, argv) /* * KHAMIS */ - textPtr->SyncCmd = NULL; textPtr->flags = 0; /* @@ -472,54 +466,6 @@ Tk_TextCmd(clientData, interp, argc, argv) return TCL_OK; } - -/* - *-------------------------------------------------------------- - * - * TextWidgetCmd -- - * - * This procedure is invoked to process the Tcl command - * that corresponds to a text widget. See the user - * documentation for details on what it does. - * - * Results: - * A standard Tcl result. - * - * Side effects: - * See the user documentation. - * - *-------------------------------------------------------------- - */ -static int -ExecSyncCmd (interp, textPtr, argc, argv) - Tcl_Interp *interp; - TkText *textPtr; - int argc; - char *argv[]; -{ - static int ExecSyncCmdActive=0; - int i, ret; - Tcl_DString cmd; - - if (ExecSyncCmdActive) - { - return TCL_OK; - } - ExecSyncCmdActive = 1; - - Tcl_DStringInit (&cmd); - Tcl_DStringAppend (&cmd, textPtr->SyncCmd, -1); - for (i=1;i