summaryrefslogtreecommitdiff
path: root/vcl/source/window/layout.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-25 20:37:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:52 +0100
commitdc5d6deb158bf4506630a4ef006b4eaeb9998fbf (patch)
treea270696256fb25757612d7b0062ee9da351fd67c /vcl/source/window/layout.cxx
parent5d60e826ae6b10161ecff64fbfbf9af230898764 (diff)
we need to have the outermost TabDialog as the recipient of tab keystrokes
Change-Id: I1d230512d2145a9a3198c25c60dcd8954928120e
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r--vcl/source/window/layout.cxx17
1 files changed, 11 insertions, 6 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 9ab95793f706..8666ef5874b7 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1072,13 +1072,18 @@ Size getLegacyBestSizeForChildren(const Window &rWindow)
return aRet;
}
-Window* getLegacyNonLayoutParent(Window *pParent)
+Window* getNonLayoutParent(Window *pWindow)
{
- while (pParent && pParent->GetType() == WINDOW_CONTAINER)
- {
- pParent = pParent->GetParent();
- }
- return pParent;
+ while (pWindow && pWindow->GetType() == WINDOW_CONTAINER)
+ pWindow = pWindow->GetParent();
+ return pWindow;
+}
+
+Window* getNonLayoutRealParent(Window *pWindow)
+{
+ while (pWindow && pWindow->GetType() == WINDOW_CONTAINER)
+ pWindow = pWindow->ImplGetParent();
+ return pWindow;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */