libgnt/libgnt

Make sure a widget can receive focus. This is used when some widgets need
to be deactivated momentarily.
  • +2 -1
    gntbox.c
  • --- a/gntbox.c Sun May 18 20:00:26 2008 +0000
    +++ b/gntbox.c Sun May 18 21:22:38 2008 +0000
    @@ -272,7 +272,8 @@
    box->active = iter->next->data;
    else if (box->focus)
    box->active = box->focus->data;
    - if (!GNT_WIDGET_IS_FLAG_SET(box->active, GNT_WIDGET_INVISIBLE))
    + if (!GNT_WIDGET_IS_FLAG_SET(box->active, GNT_WIDGET_INVISIBLE) &&
    + GNT_WIDGET_IS_FLAG_SET(box->active, GNT_WIDGET_CAN_TAKE_FOCUS))
    break;
    } while (box->active != last);
    }