diff --git a/src/List View/main.blp b/src/List View/main.blp index 1a7c356a..a8a5de75 100644 --- a/src/List View/main.blp +++ b/src/List View/main.blp @@ -13,20 +13,6 @@ Adw.StatusPage { orientation: vertical; spacing: 18; - Box { - halign: center; - - LinkButton { - label: _("API Reference"); - uri: "https://docs.gtk.org/gtk4/class.ListView.html"; - } - - LinkButton { - label: _("Documentation"); - uri: "https://docs.gtk.org/gtk4/section-list-widget.html"; - } - } - Box { halign: center; @@ -45,37 +31,41 @@ Adw.StatusPage { } } - Gtk.Stack stack { - transition-type: crossfade; - vexpand: true; - - Gtk.StackPage { - name: "listview"; - title: _("List View"); + ScrolledWindow { + hscrollbar-policy: never; + propagate-natural-height: true; + has-frame: true; + valign: start; - child: ScrolledWindow { - hscrollbar-policy: never; - propagate-natural-height: true; - has-frame: true; - valign: start; - - ListView list_view { - factory: BuilderListItemFactory { - template ListItem { - child: Gtk.Box { - Gtk.Label { - label: bind template.item as .string; - height-request: 50; - margin-start: 12; - margin-end: 12; - } - }; + ListView list_view { + factory: BuilderListItemFactory { + template ListItem { + child: Gtk.Box { + Gtk.Label { + label: bind template.item as .string; + height-request: 50; + margin-start: 12; + margin-end: 12; } }; } }; } } + + Box { + halign: center; + + LinkButton { + label: _("API Reference"); + uri: "https://docs.gtk.org/gtk4/class.ListView.html"; + } + + LinkButton { + label: _("Documentation"); + uri: "https://docs.gtk.org/gtk4/section-list-widget.html"; + } + } } } }