File: pps-sidebar-layers.blp

package info (click to toggle)
papers 49.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,332 kB
  • sloc: ansic: 37,722; sh: 197; xml: 127; makefile: 112
file content (34 lines) | stat: -rw-r--r-- 756 bytes parent folder | download
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",
        ]
      };
    }
  };
}