diff options
author | joye <joye> | 2014-01-31 22:59:46 (GMT) |
---|---|---|
committer | joye <joye> | 2014-01-31 22:59:46 (GMT) |
commit | d904537ffe8ef5d6d66cbce0870ff811222b3eb4 (patch) | |
tree | 3d738484a9a7461e5b55cc90ad1b5f54196342e5 /src/bltConfig.C | |
parent | 6a50bfd45784a86f63bcfb69657083f3a5da67a8 (diff) | |
download | blt-d904537ffe8ef5d6d66cbce0870ff811222b3eb4.zip blt-d904537ffe8ef5d6d66cbce0870ff811222b3eb4.tar.gz blt-d904537ffe8ef5d6d66cbce0870ff811222b3eb4.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltConfig.C')
-rw-r--r-- | src/bltConfig.C | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/bltConfig.C b/src/bltConfig.C index 3f9f0b3..f031086 100644 --- a/src/bltConfig.C +++ b/src/bltConfig.C @@ -82,7 +82,6 @@ #include <stdarg.h> #include "bltInt.h" -#include "bltWindow.h" #include "bltBgStyle.h" /* STATE */ @@ -1615,7 +1614,19 @@ Blt_ConfigureComponentFromObj( * Create component if a child window by the component's name * doesn't already exist. */ - tkwin = Blt_FindChild(parent, tmpName); + { + TkWindow *winPtr; + TkWindow *parentPtr = (TkWindow *)parent; + + for (winPtr = parentPtr->childList; winPtr != NULL; + winPtr = winPtr->nextPtr) { + if (strcmp(tmpName, winPtr->nameUid) == 0) { + tkwin = (Tk_Window)winPtr; + } + } + tkwin = NULL; + } + if (tkwin == NULL) { tkwin = Tk_CreateWindow(interp, parent, tmpName, (char *)NULL); isTemporary = TRUE; |