aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/apprt/gtk/ui/1.5/tab.blp
blob: 21a30bec7d11d1103e29aef7f73e52e070d93b93 (plain)
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
using Gtk 4.0;

template $GhosttyTab: Box {
  styles [
    "tab",
  ]

  orientation: vertical;
  hexpand: true;
  vexpand: true;
  title: bind $computed_title(
    template.config,
    split_tree.active-surface as <$GhosttySurface>.title,
    split_tree.active-surface as <$GhosttySurface>.title-override,
    template.title-override,
    split_tree.is-zoomed,
    split_tree.active-surface as <$GhosttySurface>.bell-ringing
    ) as <string>;
  tooltip: bind split_tree.active-surface as <$GhosttySurface>.pwd;

  $GhosttySplitTree split_tree {
    notify::active-surface => $notify_active_surface();
    notify::tree => $notify_tree();
  }
}