File: pps-password-view.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-- 707 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;
using Adw 1;
using Gio 2.0;

template $PpsPasswordView: Adw.Bin {
  child: Adw.ToolbarView {
    [top]
    Adw.HeaderBar {
      [title]
      Adw.WindowTitle {
        title: _("Password Required");
      }
    }

    Adw.StatusPage {
      icon-name: "dialog-password-symbolic";
      title: _("Password Required");
      description: _("This document is locked and can only be read by entering the correct password");

      child: Button {
        halign: center;
        use-underline: true;
        label: _("_Unlock Document");
        clicked => $open_unlock_dialog() swapped;

        styles [
          "pill",
        ]
      };
    }
  };
}

Gio.SimpleActionGroup action_group {}