Allow to disable scrolling for AdwStatusPage
AdwStatusPage
contains GtkScrolledWindow
inside itself. It's handy when you're using AdwStatusPage
as page, but it makes the widget unusable in cases where scrolling makes no sense, e.g. inside other scrollable windows. I suggest to add some property for disabling scrolling (as a short-term solution) and probably remove scrolled window from the widget at all (maybe in libadwaita
2.0). I think that wrapping a widget with a scrolled window internally is a bad idea, since it limints widget use area with no real sense. We already have GtkScrollable
interface for widgets that can be placed inside a scrolled window, why don't just implement it for AdwStatusPage
instead of hard-coding a scrolled window inside it?
My own use case of this widget that was broken by this behavior is placing AdwStatusPage
instead of editable list widget when the list is empty. The problem is that the list widget is the last, but not the only widget of the page.