def get_original_widget(widget):
    """Return inner widget that is not a decoration."""
    inner = getattr(widget, 'original_widget', None)
    while inner:
        widget = inner
        inner = getattr(widget, 'original_widget', None)
    return widget
