1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
using Gtk 4.0;
template $PpsSidebarLayers: $PpsSidebarPage {
child: Box {
orientation: vertical;
ScrolledWindow {
valign: fill;
vexpand: true;
hexpand: true;
hscrollbar-policy: never;
vscrollbar-policy: automatic;
child: ListView list_view {
single-click-activate: true;
tab-behavior: item;
model: NoSelection selection_model {};
factory: SignalListItemFactory {
setup => $list_view_factory_setup() swapped;
bind => $list_view_factory_bind() swapped;
unbind => $list_view_factory_unbind() swapped;
};
activate => $list_view_activate() swapped;
styles [
"navigation-sidebar",
]
};
}
};
}
|