Tk Source Code

View Ticket
Login
Ticket UUID: 220372
Title: Bug in tkWinWm.c
Type: Bug Version: obsolete: 8.2
Submitter: welch Created on: 2000-10-31 23:17:47
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-03-23 02:22:02
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-22 19:22:02
Description:
OriginalBugID: 641 Bug
Version: 8.0p2
SubmitDate: '1998-05-25'
LastModified: '1999-08-06'
Severity: MED
Status: Released
Submitter: hershey
ChangedBy: hobbs
OS: All Windows
OSVersion: NA
Machine: NA
FixedDate: '1999-08-06'
FixedInVersion: 8.2


Found a bug in tkWinWm.c that causes system menubars to disappear
from toplevel widgets if the toplevel style is changed,
e.g. by using wm transient or wm overrideredirect.

File: tkWinWm.c
Line: 734
Routine: UpdateWrapper
Code:

    if (oldWrapper && (oldWrapper != wmPtr->wrapper) 
            && (oldWrapper != GetDesktopWindow())) {
        SetWindowLong(oldWrapper, GWL_USERDATA, (LONG) NULL);

/* bug fix: Must remove any system menubar before deleting wrapper
 *          else the menubar gets deleted too !
 */
        SetMenu(oldWrapper,NULL);


        DestroyWindow(oldWrapper);
    }


This fix exists in the 8.2b2 code. 
-- 08/06/1999 hobbs