aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-12-26 23:49:41 +0100
committerSebastian Geerken <devnull@localhost>2014-12-26 23:49:41 +0100
commite705d0fa68041490d485cdc5b390ccf80e771722 (patch)
tree79dec6d5f834144914c19879f49babaa314d1c63 /dw/widget.cc
parent806a0bdfe4c8199d6b8b684e53d84d4723e775be (diff)
Minor changes (no actual code).
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index c02b007f..ca6abb37 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -125,8 +125,8 @@ Widget::~Widget ()
* \brief Calculates the intersection of widget->allocation and area, returned
* in intersection (in widget coordinates!).
*
- * Typically used by containers when
- * drawing their children. Returns whether intersection is not empty.
+ * Typically used by containers when drawing their children. Returns whether
+ * intersection is not empty.
*/
bool Widget::intersects (Rectangle *area, Rectangle *intersection)
{
@@ -252,6 +252,10 @@ void Widget::drawToplevel (View *view, Rectangle *area)
// Everything should be finished at this point.
assert (interruptedWidget == NULL);
+ //if (interruptedWidget != NULL)
+ // DBG_OBJ_MSGF ("draw", 0,
+ // "===== Assertion failed: interruptedWidget = %p =====",
+ // interruptedWidget);
}
Widget *Widget::getWidgetAtPoint (int x, int y,
@@ -344,6 +348,8 @@ Widget *Widget::getWidgetAtPointToplevel (int x, int y)
void Widget::setParent (Widget *parent)
{
+ DBG_OBJ_ENTER ("construct", 0, "setParent", "%p", parent);
+
this->parent = parent;
layout = parent->layout;
@@ -381,6 +387,8 @@ void Widget::setParent (Widget *parent)
stackingContextWidget = parent->stackingContextWidget;
notifySetParent();
+
+ DBG_OBJ_LEAVE ();
}
void Widget::setQuasiParent (Widget *quasiParent)