Tk Source Code

Check-in [4dc9a8d8]
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-4-branch
Files: files | file ages | folders
SHA1: 4dc9a8d8f3c66aac959d1bdbe47ce68516e4d57f
User & Date: dgp 2012-08-23 21:40:24
Context
2012-08-25
01:52
3554026 3561016 Better fix from Emiliano Gavilan. check-in: 3cf36aec user: dgp tags: core-8-4-branch
2012-08-23
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
07:50
nmakehlp: Add "-V<num>" option, in order to be able to detect partial version numbers. check-in: ccc54f7f user: jan.nijtmans tags: core-8-4-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-03  Francois Vogel  <[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-03  Francois Vogel  <[email protected]>

Changes to unix/tkUnixWm.c.

6272
6273
6274
6275
6276
6277
6278







6279
6280
6281
6282
6283
6284
6285
    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);
}

/*
 *----------------------------------------------------------------------







>
>
>
>
>
>
>







6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
    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);
}

/*
 *----------------------------------------------------------------------