home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!elroy.jpl.nasa.gov!nntp-server.caltech.edu!nntp-server.caltech.edu!tromey
- From: tromey@cns.caltech.edu (Tom Tromey)
- Newsgroups: comp.lang.tcl
- Subject: wm raise/lower
- Date: 18 Dec 92 19:15:42
- Organization: California Institute of Technology
- Lines: 44
- Message-ID: <TROMEY.92Dec18191542@kant.cns.caltech.edu>
- NNTP-Posting-Host: kant.cns.caltech.edu
-
- Included are patches to Tk 3.0 which implement the "wm raise window"
- and "wm lower window" commands. The named window must be a toplevel
- window.
-
- Tom
-
- *** tkWm.c.~1~ Wed Dec 16 12:59:15 1992
- --- tkWm.c Fri Dec 18 15:57:01 1992
- ***************
- *** 1052,1061 ****
- --- 1052,1063 ----
- wmPtr->hints.icon_window = Tk_WindowId(tkwin2);
- wmPtr->hints.flags |= IconWindowHint;
- wmPtr->iconWindowName = Tk_PathName(tkwin2);
- }
- UpdateHints(winPtr);
- + } else if ((c == 'l') && (strncmp(argv[1], "lower", length)) == 0) {
- + XLowerWindow (winPtr->display, winPtr->window);
- } else if ((c == 'm') && (strncmp(argv[1], "maxsize", length) == 0)
- && (length >= 2)) {
- int width, height;
- if ((argc != 3) && (argc != 5)) {
- Tcl_AppendResult(interp, "wrong # arguments: must be \"",
- ***************
- *** 1240,1249 ****
- --- 1242,1253 ----
- }
- }
- if (!(wmPtr->flags & WM_NEVER_MAPPED)) {
- UpdateWmProtocols(wmPtr);
- }
- + } else if ((c == 'r') && (strncmp(argv[1], "raise", length)) == 0) {
- + XRaiseWindow (winPtr->display, winPtr->window);
- } else if ((c == 's') && (strncmp(argv[1], "sizefrom", length) == 0)) {
- if ((argc != 3) && (argc != 4)) {
- Tcl_AppendResult(interp, "wrong # arguments: must be \"",
- argv[0], " sizefrom window ?user|program?\"",
- (char *) NULL);
-
- --
- tromey@cns.caltech.edu
- "In a riddle whose answer is chess, what is the only prohibited word?"
- I thought a moment and replied, "The word chess".
- -- Jorge Luis Borges
-