Skip to content

Commit

Permalink
Remove unused stack
Browse files Browse the repository at this point in the history
Also move links to documentation to the bottom to be in line with most demos.
  • Loading branch information
UrtsiSantsi authored Nov 11, 2024
1 parent 6b86bd9 commit 615fe95
Showing 1 changed file with 28 additions and 38 deletions.
66 changes: 28 additions & 38 deletions src/List View/main.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 <StringObject>.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 <StringObject>.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";
}
}
}
}
Expand Down

0 comments on commit 615fe95

Please sign in to comment.