From 373d9b2be8983294414323edd2b51b689ab821d8 Mon Sep 17 00:00:00 2001 From: patthoyts Date: Wed, 24 Oct 2007 00:16:43 +0000 Subject: permit wm manage of any widget (esp: ttk::frame) --- ChangeLog | 4 ++++ generic/tkWindow.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 033dcdc..831bf61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-24 Pat Thoyts + + * generic/tkWindow.c: permit wm manage of any widget (esp: ttk::frame) + 2007-10-23 Jeff Hobbs * library/ttk/combobox.tcl (ttk::combobox::PopdownWindow): redo wm diff --git a/generic/tkWindow.c b/generic/tkWindow.c index d9da81a..c2e12f8 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWindow.c,v 1.86 2007/09/17 14:58:05 dgp Exp $ + * RCS: @(#) $Id: tkWindow.c,v 1.87 2007/10/24 00:16:43 patthoyts Exp $ */ #include "tkInt.h" @@ -1706,7 +1706,7 @@ Tk_MakeWindowExist( } createProc = Tk_GetClassProc(winPtr->classProcsPtr, createProc); - if (createProc != NULL) { + if (createProc != NULL && parent != None) { winPtr->window = (*createProc)(tkwin, parent, winPtr->instanceData); } else { winPtr->window = TkpMakeWindow(winPtr, parent); -- cgit v0.12