+2002-07-31 Keith Seitz <keiths@redhat.com>
+
+ From Mo DeJong <supermo@bayarea.net>
+ * 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 <dj@redhat.com>
* xlib/X11/Xutil.h (XEmptyRegion): Returns Bool.
{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}
};
/*
* KHAMIS */
- textPtr->SyncCmd = NULL;
textPtr->flags = 0;
/*
return TCL_OK;
}
-\f
-/*
- *--------------------------------------------------------------
- *
- * 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<argc;i++) {
- Tcl_DStringAppendElement (&cmd, argv[i]);
- }
-
- ret = Tcl_Eval (interp, Tcl_DStringValue(&cmd));
- Tcl_DStringFree (&cmd);
-
- ExecSyncCmdActive = 0;
-
- return ret;
-}
static void
ViewArgs (reason, argc, argv, mode)
toplevel .icon -width 50 -height 50 -bg red
wm iconwindow .t .icon
list [catch {wm iconify .icon} msg] $msg
-} {1 {can't iconify .icon: it is an icon for .icon}}
+} {1 {can't iconify .icon: it is an icon for .t}}
test wm-10.2 {icon windows} {
catch {destroy .t}
catch {destroy .icon}
toplevel .icon -width 50 -height 50 -bg red
wm iconwindow .t .icon
list [catch {wm deiconify .icon} msg] $msg
-} {1 {can't deiconify .icon: it is an icon for .icon}}
+} {1 {can't deiconify .icon: it is an icon for .t}}
test wm-10.3 {icon windows} {
catch {destroy .t}
catch {destroy .icon}