diff options
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index 89361881..f7bd7597 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -245,7 +245,7 @@ Layout::Layout (Platform *platform) topLevel = NULL; widgetAtPoint = NULL; - DBG_OBJ_CREATE (this, "DwRenderLayout"); + DBG_OBJ_CREATE ("dw::core::Layout"); bgColor = NULL; bgImage = NULL; @@ -270,8 +270,8 @@ Layout::Layout (Platform *platform) textZone = new misc::ZoneAllocator (16 * 1024); - DBG_OBJ_ASSOC (&findtextState, this); - DBG_OBJ_ASSOC (&selectionState, this); + DBG_OBJ_ASSOC_CHILD (&findtextState); + DBG_OBJ_ASSOC_CHILD (&selectionState); platform->setLayout (this); @@ -354,6 +354,8 @@ void Layout::removeWidget () void Layout::setWidget (Widget *widget) { + DBG_OBJ_ASSOC_CHILD (widget); + widgetAtPoint = NULL; if (topLevel) { Widget *w = topLevel; @@ -377,6 +379,8 @@ void Layout::attachView (View *view) if (this->view) MSG_ERR("attachView: Multiple views for layout!\n"); + DBG_OBJ_ASSOC_CHILD (view); + this->view = view; platform->attachView (view); |