diff options
author | Sebastian Geerken <devnull@localhost> | 2013-01-29 18:27:13 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-01-29 18:27:13 +0100 |
commit | d10fe9a2e8531951cdfb7b54bf4e003ef76eddd5 (patch) | |
tree | 7874825308e99e0396091f93a98f741e8906a190 /dw/widget.cc | |
parent | d8f1e1bcfa59947b0dabc7a1ec61232d2eb5535e (diff) |
Removing parts of the ancient commented-out (and temporally removed) GTK code by commented-out code that works. (Debug messages which are useful from time to time.)
Diffstat (limited to 'dw/widget.cc')
-rw-r--r-- | dw/widget.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/widget.cc b/dw/widget.cc index 0027489c..9c6fe380 100644 --- a/dw/widget.cc +++ b/dw/widget.cc @@ -127,6 +127,9 @@ void Widget::queueResize (int ref, bool extremesChanged) { Widget *widget2, *child; + //printf("The %stop-level %s %p with parentRef = %d has changed its size.\n", + // parent ? "non-" : "", getClassName(), this, parentRef); + setFlags (NEEDS_RESIZE); setFlags (NEEDS_ALLOCATE); markSizeChange (ref); @@ -143,6 +146,11 @@ void Widget::queueResize (int ref, bool extremesChanged) widget2->markSizeChange (child->parentRef); widget2->setFlags (NEEDS_ALLOCATE); + //printf (" Setting DW_NEEDS_RESIZE and NEEDS_ALLOCATE for the " + // "%stop-level %s %p with parentRef = %d\n", + // widget2->parent ? "non-" : "", widget2->getClassName(), widget2, + // widget2->parentRef); + if (extremesChanged) { widget2->setFlags (EXTREMES_CHANGED); widget2->markExtremesChange (child->parentRef); @@ -486,6 +494,10 @@ Widget *Widget::getWidgetAtPoint (int x, int y, int level) Iterator *it; Widget *childAtPoint; + //printf ("%*s-> examining the %s %p (%d, %d, %d x (%d + %d))\n", + // 3 * level, "", getClassName (), this, allocation.x, allocation.y, + // allocation.width, allocation.ascent, allocation.descent); + if (x >= allocation.x && y >= allocation.y && x <= allocation.x + allocation.width && |