Tk Source Code

Check-in [2163407f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:3554026,3561016 Stop crash with tearoff menus.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: 2163407f330eadfd3971162199572cb93677e4fe
User & Date: dgp 2012-08-23 21:41:43
Context
2012-08-24
14:59
[Bug 3558535]: Factor out the filtered-sorted globbing code into one procedure that knows how to avoid nasty problems when non-list filters are used. check-in: 89300ed4 user: dkf tags: core-8-5-branch
2012-08-23
21:42
3554026,3561016 Stop crash with tearoff menus check-in: 2eee9b6a user: dgp tags: trunk
21:41
3554026,3561016 Stop crash with tearoff menus. check-in: 2163407f user: dgp tags: core-8-5-branch
21:40
3554026,3561016 Stop crash with tearoff menus. check-in: 4dc9a8d8 user: dgp tags: core-8-4-branch
2012-08-17
10:27
nmakehlp: Add "-V<num>" option, in order to be able to detect partial version numbers. check-in: 4d4b4f25 user: jan.nijtmans tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.





1
2
3
4
5
6
7




2012-08-17  Jan Nijtmans  <[email protected]>

	* win/nmakehlp.c: Add "-V<num>" option, in order to be able
	to detect partial version numbers.

2012-08-15  Jan Nijtmans  <[email protected]>

>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
2012-08-23  Don Porter  <[email protected]>

	* unix/tkUnixWm.c: [Bugs 3554026,3561016] Stop crash with tearoff menus.

2012-08-17  Jan Nijtmans  <[email protected]>

	* win/nmakehlp.c: Add "-V<num>" option, in order to be able
	to detect partial version numbers.

2012-08-15  Jan Nijtmans  <[email protected]>

Changes to unix/tkUnixWm.c.

6751
6752
6753
6754
6755
6756
6757







6758
6759
6760
6761
6762
6763
6764
TkSetTransientFor(Tk_Window tkwin, Tk_Window parent)
{
    if (parent == None) {
	parent = Tk_Parent(tkwin);
	while (!Tk_IsTopLevel(parent))
	    parent = Tk_Parent(tkwin);
    }







    XSetTransientForHint(Tk_Display(tkwin),
	((TkWindow *)tkwin)->wmInfoPtr->wrapperPtr->window,
	((TkWindow *)parent)->wmInfoPtr->wrapperPtr->window);
}

/*
 *----------------------------------------------------------------------







>
>
>
>
>
>
>







6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
TkSetTransientFor(Tk_Window tkwin, Tk_Window parent)
{
    if (parent == None) {
	parent = Tk_Parent(tkwin);
	while (!Tk_IsTopLevel(parent))
	    parent = Tk_Parent(tkwin);
    }
    /*
     * Prevent crash due to incomplete initialization, or other problems.
     * [Bugs 3554026, 3561016]
     */
    if (((TkWindow *)parent)->wmInfoPtr->wrapperPtr == NULL) {
	return;
    }
    XSetTransientForHint(Tk_Display(tkwin),
	((TkWindow *)tkwin)->wmInfoPtr->wrapperPtr->window,
	((TkWindow *)parent)->wmInfoPtr->wrapperPtr->window);
}

/*
 *----------------------------------------------------------------------