summaryrefslogtreecommitdiff
path: root/src/gui/dialogs/prefs/security.ui
blob: ccf2d39f6cbcc52fb9d4c26429f520677abedb85 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?xml version="1.0" encoding="UTF-8"?>
<interface>

    <template class="GtkSecurityTweakPanel" parent="GtkBox">

        <property name="orientation">vertical</property>

        <!-- Conservation de paramètres sécurisée -->
        <child>
            <object class="GtkGrid">
                <property name="margin-start">20</property>
                <property name="margin-end">20</property>
                <property name="margin-top">20</property>
                <property name="margin-bottom">20</property>
                <property name="row-spacing">10</property>
                <property name="column-spacing">10</property>

                <child>
                    <object class="GtkLabel">
                        <property name="label">Secret storage</property>
                        <property name="use-markup">true</property>
                        <property name="xalign">0</property>
                        <layout>
                            <property name="column">0</property>
                            <property name="row">0</property>
                            <property name="column-span">2</property>
                        </layout>
                        <style>
                            <class name="heading"/>
                        </style>
                    </object>
                </child>

                <child>
                    <object class="GtkLabel">
                        <property name="label">Configuration may handle sensitive data (such as passwords or API keys) which can be saved in plain text or stored encrypted using a Primary Password.

If encryption is activated, entering the Primary Password will be asked on need once per session.</property>
                        <property name="wrap">true</property>
                        <property name="xalign">0</property>
                        <layout>
                            <property name="column">0</property>
                            <property name="row">1</property>
                            <property name="column-span">2</property>
                        </layout>
                        <style>
                            <class name="dim-label"/>
                        </style>
                    </object>
                </child>

                <!-- Mot de passe courant -->

                <child>
                    <object class="GtkLabel">
                        <property name="label">Enter current password:</property>
                        <property name="xalign">0</property>
                        <layout>
                            <property name="column">0</property>
                            <property name="row">2</property>
                        </layout>
                    </object>
                </child>

                <child>
                    <object class="GtkPasswordEntry" id="current_primary_passwd">
                        <property name="hexpand">true</property>
                        <property name="show-peek-icon">true</property>
                        <layout>
                            <property name="column">1</property>
                            <property name="row">2</property>
                        </layout>
                    </object>
                </child>

                <!-- Nouveau mot de passe -->

                <child>
                    <object class="GtkLabel" id="new_primary_passwd_lbl">
                        <property name="label">Enter new password:</property>
                        <property name="xalign">0</property>
                        <layout>
                            <property name="column">0</property>
                            <property name="row">3</property>
                        </layout>
                    </object>
                </child>

                <child>
                    <object class="GtkPasswordEntry" id="new_primary_passwd">
                        <property name="hexpand">true</property>
                        <property name="show-peek-icon">true</property>
                        <signal name="changed" handler="gtk_security_tweak_panel_on_new_passwords_changed"/>
                        <layout>
                            <property name="column">1</property>
                            <property name="row">3</property>
                        </layout>
                    </object>
                </child>

                <!-- Confirmation de mot de passe -->

                <child>
                    <object class="GtkLabel" id="new_primary_passwd_2_lbl">
                        <property name="label">Re-enter new password:</property>
                        <property name="xalign">0</property>
                        <layout>
                            <property name="column">0</property>
                            <property name="row">4</property>
                        </layout>
                    </object>
                </child>

                <child>
                    <object class="GtkPasswordEntry" id="new_primary_passwd_2">
                        <property name="hexpand">true</property>
                        <property name="show-peek-icon">true</property>
                        <signal name="changed" handler="gtk_security_tweak_panel_on_new_passwords_changed"/>
                        <layout>
                            <property name="column">1</property>
                            <property name="row">4</property>
                        </layout>
                    </object>
                </child>

                <!-- Boutons de contrôle -->

                <child>
                    <object class="GtkBox">
                        <property name="halign">center</property>
                        <property name="homogeneous">true</property>
                        <property name="spacing">8</property>
                        <layout>
                            <property name="column">0</property>
                            <property name="row">5</property>
                            <property name="column-span">2</property>
                        </layout>

                        <child>
                            <object class="GtkButton" id="set_password">
                                <property name="label">Set</property>
                                <signal name="clicked" handler="gtk_security_tweak_panel_on_set_password_clicked"/>
                            </object>
                        </child>

                        <child>
                            <object class="GtkButton" id="change_password">
                                <property name="label">Change</property>
                                <signal name="clicked" handler="gtk_security_tweak_panel_on_change_password_clicked"/>
                            </object>
                        </child>

                        <child>
                            <object class="GtkButton" id="remove_password">
                                <property name="label">Remove</property>
                                <signal name="clicked" handler="gtk_security_tweak_panel_on_remove_password_clicked"/>
                                <style>
                                    <class name="destructive-action"/>
                                </style>
                            </object>
                        </child>

                    </object>
                </child>

            </object>
        </child>

    </template>
</interface>