From 615fe95461c66479e70ef22042e39e267db64a54 Mon Sep 17 00:00:00 2001 From: UrtsiSantsi <142679804+UrtsiSantsi@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:14:32 +0200 Subject: [PATCH] Remove unused stack Also move links to documentation to the bottom to be in line with most demos. --- src/List View/main.blp | 66 ++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 38 deletions(-) diff --git a/src/List View/main.blp b/src/List View/main.blp index 1a7c356a..bc36061f 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,36 +31,40 @@ 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"; + } } } }