Debian Codegraph @

src/ui/dialog.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface>
3 <requires lib="gtk+" version="3.20"/>
4 <!-- The HdyWindow provides us with rounded corners when there is no headerbar for authentication -->
5 <template class="ConnectionsDialogsWindow" parent="HdyWindow">
6 <property name="visible">False</property>
7 <property name="valign">start</property>
8 <property name="border-width">0</property>
9 <signal name="key-press-event" after="yes" handler="on_key_pressed"/>
10
11 <child>
12 <object class="GtkBox">
13 <property name="visible">True</property>
14 <property name="orientation">vertical</property>
15 <child>
16 <object class="HdyHeaderBar" id="dialog_headerbar">
17 <property name="visible">True</property>
18 <property name="title" translatable="yes" comments="Translators: The dialog with this title is shown to the user before opening the connection if needed (e.g. certificate confirmation).">Open Connection</property>
19 <style>
20 <class name="titlebar"/>
21 </style>
22
23 <child>
24 <object class="GtkStack" id="header_stack">
25 <property name="visible">True</property>
26 <property name="halign">start</property>
27
28 <child>
29 <object class="GtkButton" id="verify_button">
30 <property name="can_focus">True</property>
31 <property name="receives_default">False</property>
32 <property name="valign">center</property>
33 <property name="visible">True</property>
34 <signal name="clicked" handler="verify_button_clicked_cb"/>
35 <child internal-child="accessible">
36 <object class="AtkObject" id="a11y-verify">
37 <property name="accessible-name" translatable="yes">Verify</property>
38 </object>
39 </child>
40 <child>
41 <object class="GtkLabel">
42 <property name="visible">True</property>
43 <property name="label" translatable="yes">Verify</property>
44 <property name="margin-top">3</property>
45 <property name="margin-bottom">3</property>
46 <property name="margin-start">6</property>
47 <property name="margin-end">6</property>
48 <attributes>
49 <attribute name="weight" value="bold"/>
50 </attributes>
51 </object>
52 </child>
53 </object>
54 <packing>
55 <property name="name">verify-button-page</property>
56 </packing>
57 </child>
58
59 <child>
60 <object class="GtkButton" id="connect_button">
61 <property name="receives_default">False</property>
62 <property name="valign">center</property>
63 <property name="visible">True</property>
64 <property name="sensitive">False</property>
65 <signal name="clicked" handler="connect_button_clicked_cb"/>
66 <child internal-child="accessible">
67 <object class="AtkObject" id="a11y-connect">
68 <property name="accessible-name" translatable="yes">Connect</property>
69 </object>
70 </child>
71 <child>
72 <object class="GtkLabel">
73 <property name="visible">True</property>
74 <property name="label" translatable="yes">Connect</property>
75 <property name="margin-top">3</property>
76 <property name="margin-bottom">3</property>
77 <property name="margin-start">6</property>
78 <property name="margin-end">6</property>
79 <attributes>
80 <attribute name="weight" value="bold"/>
81 </attributes>
82 </object>
83 </child>
84 </object>
85 <packing>
86 <property name="name">connect-button-page</property>
87 </packing>
88 </child>
89 </object>
90 <packing>
91 <property name="pack_type">end</property>
92 </packing>
93 </child>
94
95 <child>
96 <object class="GtkButton" id="cancel_button">
97 <property name="can_focus">True</property>
98 <property name="receives_default">False</property>
99 <property name="valign">center</property>
100 <property name="visible">True</property>
101 <signal name="clicked" handler="cancel_connection"/>
102 <child>
103 <object class="GtkLabel" id="cancel_button_label">
104 <property name="visible">True</property>
105 <property name="label" translatable="yes">Cancel</property>
106 <property name="margin-top">3</property>
107 <property name="margin-bottom">3</property>
108 <property name="margin-start">6</property>
109 <property name="margin-end">6</property>
110 <attributes>
111 <attribute name="weight" value="bold"/>
112 </attributes>
113 </object>
114 </child>
115 </object>
116 <packing>
117 <property name="pack_type">start</property>
118 </packing>
119 </child>
120 </object>
121 </child>
122
123 <child>
124 <object class="GtkStack" id="content_stack">
125 <property name="visible">True</property>
126 <property name="halign">fill</property>
127 <child>
128 <object class="GtkGrid">
129 <property name="visible">True</property>
130 <property name="column-spacing">12</property>
131 <property name="row-spacing">20</property>
132 <property name="halign">center</property>
133 <property name="valign">start</property>
134 <property name="margin-top">28</property>
135 <property name="margin-bottom">28</property>
136 <property name="margin-start">20</property>
137 <property name="margin-end">16</property>
138
139 <child>
140 <object class="GtkLabel">
141 <property name="visible">True</property>
142 <property name="use-markup">True</property>
143 <property name="halign">start</property>
144 <property name="label" translatable="yes">Verify Fingerprint</property>
145 <attributes>
146 <attribute name="weight" value="bold"/>
147 </attributes>
148 </object>
149
150 <packing>
151 <property name="left-attach">0</property>
152 <property name="top-attach">0</property>
153 <property name="width">2</property>
154 <property name="height">1</property>
155 </packing>
156 </child>
157
158 <child>
159 <object class="GtkLabel" id="text_label">
160 <property name="visible">True</property>
161 <property name="use-markup">True</property>
162 <property name="halign">start</property>
163 <property name="justify">left</property>
164 <property name="wrap">True</property>
165 <property name="wrap-mode">word-char</property>
166 <property name="max-width-chars">32</property>
167 </object>
168
169 <packing>
170 <property name="left-attach">0</property>
171 <property name="top-attach">1</property>
172 <property name="width">2</property>
173 <property name="height">1</property>
174 </packing>
175 </child>
176
177 <child>
178 <object class="GtkLabel" id="fingerprint_value">
179 <property name="visible">True</property>
180 <property name="use-underline">True</property>
181 <property name="halign">start</property>
182 <attributes>
183 <attribute name="family" value="mono"/>
184 </attributes>
185 </object>
186
187 <packing>
188 <property name="left-attach">1</property>
189 <property name="top-attach">4</property>
190 <property name="width">1</property>
191 <property name="height">1</property>
192 </packing>
193 </child>
194
195 <child>
196 <object class="GtkPopover" id="rdp_help_popover">
197 <property name="visible">True</property>
198 <property name="border-width">10</property>
199 <child>
200 <object class="GtkBox">
201 <property name="visible">True</property>
202 <property name="orientation">vertical</property>
203 <property name="margin">10</property>
204 <property name="spacing">5</property>
205 <child>
206 <object class="GtkLabel">
207 <property name="visible">True</property>
208 <property name="use-markup">True</property>
209 <property name="halign">start</property>
210 <property name="xalign">0</property>
211 <property name="label" translatable="yes">On Windows run certlm.msc or certmgr.msc
212 and copy the certificate from
213 &lt;b&gt;Remote Desktop>Certificates&lt;/b&gt; to a file.
214 Then obtain its fingerprint via
215 "certutil.exe -hashfile file SHA256".
216
217 If GNOME is used on the connected endpoint,
218 the fingerprint can be verified in the &lt;b&gt;Settings>Sharing&lt;/b&gt;
219 panel or &lt;b&gt;Settings>System&lt;/b&gt; panel under
220 &lt;b&gt;Remote Desktop>Verify Encryption&lt;/b&gt;.</property>
221 </object>
222 </child>
223 </object>
224 </child>
225 </object>
226 <object class="GtkMenuButton" id="help_button">
227 <property name="visible">True</property>
228 <property name="halign">center</property>
229 <property name="valign">center</property>
230 <property name="can_focus">False</property>
231 <property name="relief">none</property>
232 <property name="sensitive">True</property>
233 <property name="popover">rdp_help_popover</property>
234 <style>
235 <class name="image-button"/>
236 </style>
237 <child>
238 <object class="GtkImage">
239 <property name="visible">True</property>
240 <property name="can_focus">False</property>
241 <property name="icon-name">help-about-symbolic</property>
242 <property name="icon-size">1</property>
243 </object>
244 </child>
245 </object>
246
247 <packing>
248 <property name="left-attach">2</property>
249 <property name="top-attach">1</property>
250 </packing>
251 </child>
252 </object>
253 <packing>
254 <property name="name">certificate-verification</property>
255 </packing>
256 </child>
257
258 <child>
259 <object class="GtkGrid">
260 <property name="visible">True</property>
261 <!-- The HdyPreferencesPage has some default margin which I can not remove -->
262 <property name="column-spacing">0</property>
263 <property name="row-spacing">0</property>
264 <property name="halign">center</property>
265 <property name="valign">start</property>
266 <property name="margin-top">32</property>
267 <property name="margin-bottom">0</property>
268 <property name="margin-start">10</property>
269 <property name="margin-end">10</property>
270
271 <child>
272 <object class="GtkImage">
273 <property name="visible">True</property>
274 <property name="resource">/org/gnome/Connections/ui/fingerprint2-symbolic.svg</property>
275 <property name="pixel-size">80</property>
276 </object>
277
278 <packing>
279 <property name="left-attach">0</property>
280 <property name="top-attach">0</property>
281 </packing>
282 </child>
283
284 <child>
285 <object class="GtkLabel">
286 <property name="visible">True</property>
287 <property name="margin-top">15</property>
288 <property name="margin-start">15</property>
289 <property name="margin-end">15</property>
290 <property name="use-markup">True</property>
291 <property name="halign">center</property>
292 <property name="label" translatable="yes">Unexpected Certificate</property>
293 <attributes>
294 <attribute name="weight" value="bold"/>
295 <attribute name="scale" value="1.2"/>
296 </attributes>
297 </object>
298
299 <packing>
300 <property name="left-attach">0</property>
301 <property name="top-attach">1</property>
302 </packing>
303 </child>
304
305 <child>
306 <object class="GtkLabel" id="certificate_change_text_label">
307 <property name="visible">True</property>
308 <property name="use-markup">True</property>
309 <property name="margin-top">15</property>
310 <property name="margin-start">15</property>
311 <property name="margin-end">15</property>
312 <property name="halign">start</property>
313 <property name="justify">center</property>
314 <property name="wrap">True</property>
315 <property name="wrap-mode">word-char</property>
316 <property name="max-width-chars">32</property>
317 </object>
318
319 <packing>
320 <property name="left-attach">0</property>
321 <property name="top-attach">2</property>
322 </packing>
323 </child>
324
325 <child>
326 <object class="HdyPreferencesPage">
327 <property name="visible">True</property>
328 <child>
329 <object class="HdyPreferencesGroup">
330 <property name="visible">True</property>
331 <child>
332 <object class="HdyActionRow">
333 <property name="visible">True</property>
334 <property name="title" translatable="yes">Delete Local Certificate</property>
335 <child>
336 <object class="GtkSwitch" id="delete_local_certificate_switch">
337 <property name="visible">True</property>
338 <property name="valign">center</property>
339 <signal name="notify::active" handler="delete_local_certificate_switch_changed" object="ConnectionsDialogsWindow" swapped="no" />
340 </object>
341 </child>
342 </object>
343 </child>
344 </object>
345 </child>
346 </object>
347 <packing>
348 <property name="left-attach">0</property>
349 <property name="top-attach">3</property>
350 </packing>
351 </child>
352 </object>
353 <packing>
354 <property name="name">certificate-change-verification</property>
355 </packing>
356 </child>
357
358 <child>
359 <object class="GtkBox">
360 <property name="visible">True</property>
361 <property name="orientation">vertical</property>
362 <child>
363 <!-- The HdyWindowHandle allows the user to move the window even when there is no active headerbar -->
364 <object class="HdyWindowHandle">
365 <property name="visible">True</property>
366 <child>
367 <object class="GtkGrid">
368 <property name="visible">True</property>
369 <!-- The HdyPreferencesPage has some default margin which I can not remove -->
370 <property name="column-spacing">0</property>
371 <property name="row-spacing">0</property>
372 <property name="valign">start</property>
373 <property name="vexpand">True</property>
374 <property name="margin-top">16</property>
375 <property name="margin-bottom">0</property>
376 <property name="margin-start">10</property>
377 <property name="margin-end">10</property>
378
379 <child>
380 <object class="GtkLabel">
381 <property name="visible">True</property>
382 <property name="margin-top">15</property>
383 <property name="margin-start">15</property>
384 <property name="margin-end">15</property>
385 <property name="use-markup">True</property>
386 <property name="halign">center</property>
387 <property name="label" translatable="yes">Authentication Required</property>
388 <attributes>
389 <attribute name="weight" value="bold"/>
390 <attribute name="scale" value="1.2"/>
391 </attributes>
392 </object>
393
394 <packing>
395 <property name="left-attach">0</property>
396 <property name="top-attach">0</property>
397 <property name="width">2</property>
398 </packing>
399 </child>
400
401 <child>
402 <object class="GtkLabel" id="authentication_text">
403 <property name="visible">True</property>
404 <property name="margin-top">15</property>
405 <property name="margin-start">15</property>
406 <property name="margin-end">15</property>
407 <property name="use-markup">True</property>
408 <property name="halign">center</property>
409 <property name="wrap">True</property>
410 <property name="wrap-mode">word-char</property>
411 <property name="max-width-chars">32</property>
412 </object>
413
414 <packing>
415 <property name="left-attach">0</property>
416 <property name="top-attach">1</property>
417 <property name="width">2</property>
418 </packing>
419 </child>
420
421 <child>
422 <object class="HdyPreferencesPage">
423 <property name="visible">True</property>
424 <child>
425 <object class="HdyPreferencesGroup">
426 <property name="visible">True</property>
427 <child>
428 <object class="HdyActionRow" id="username_row">
429 <property name="activatable-widget">username_entry</property>
430 <property name="visible">True</property>
431 <property name="can-focus">False</property>
432 <child>
433 <object class="GtkEntry" id="username_entry">
434 <property name="visible">True</property>
435 <property name="halign">fill</property>
436 <property name="expand">True</property>
437 <property name="can-focus">True</property>
438 <property name="has-frame">False</property>
439 <property name="placeholder-text" translatable="yes">Username…</property>
440 <signal name="activate" handler="on_username_entry_activated"/>
441 </object>
442 </child>
443
444 <child>
445 <object class="GtkImage">
446 <property name="can_focus">False</property>
447 <property name="icon_name">document-edit-symbolic</property>
448 <property name="icon_size">1</property>
449 <property name="visible">True</property>
450 </object>
451 </child>
452 </object>
453 </child>
454
455 <child>
456 <object class="HdyActionRow" id="password_row">
457 <property name="activatable-widget">password_entry</property>
458 <property name="visible">True</property>
459 <property name="can-focus">False</property>
460 <child>
461 <object class="GtkEntry" id="password_entry">
462 <property name="visibility">False</property>
463 <property name="visible">True</property>
464 <property name="halign">fill</property>
465 <property name="expand">True</property>
466 <property name="can-focus">True</property>
467 <property name="has-frame">False</property>
468 <property name="placeholder-text" translatable="yes">Password…</property>
469 <signal name="activate" handler="on_password_entry_activated"/>
470 </object>
471 </child>
472
473 <child>
474 <object class="GtkButton" id="show_password_button">
475 <property name="visible">True</property>
476 <property name="halign">center</property>
477 <property name="valign">center</property>
478 <property name="can_focus">True</property>
479 <property name="relief">none</property>
480 <property name="sensitive">True</property>
481 <signal name="clicked" handler="show_password_button_clicked" object="ConnectionsDialogsWindow" swapped="no" />
482 <style>
483 <class name="image-button"/>
484 </style>
485 <child>
486 <object class="GtkImage" id="show_password_icon">
487 <property name="visible">True</property>
488 <property name="can_focus">False</property>
489 <property name="icon-name">view-reveal-symbolic</property>
490 <property name="icon-size">1</property>
491 </object>
492 </child>
493 </object>
494 </child>
495
496 <child>
497 <object class="GtkImage">
498 <property name="can_focus">False</property>
499 <property name="icon_name">document-edit-symbolic</property>
500 <property name="icon_size">1</property>
501 <property name="visible">True</property>
502 </object>
503 </child>
504 </object>
505 </child>
506
507 <child>
508 <object class="HdyActionRow" id="domain_row">
509 <property name="activatable-widget">domain_entry</property>
510 <property name="visible">True</property>
511 <property name="can-focus">False</property>
512 <child>
513 <object class="GtkEntry" id="domain_entry">
514 <property name="visible">True</property>
515 <property name="halign">fill</property>
516 <property name="expand">True</property>
517 <property name="can-focus">True</property>
518 <property name="has-frame">False</property>
519 <property name="placeholder-text" translatable="yes">Domain…</property>
520 <signal name="activate" handler="on_domain_entry_activated"/>
521 </object>
522 </child>
523
524 <child>
525 <object class="GtkPopover" id="domain_help_popover">
526 <property name="visible">True</property>
527 <property name="border-width">10</property>
528 <child>
529 <object class="GtkBox">
530 <property name="visible">True</property>
531 <property name="orientation">vertical</property>
532 <property name="margin">10</property>
533 <property name="spacing">5</property>
534 <child>
535 <object class="GtkLabel">
536 <property name="visible">True</property>
537 <property name="use-markup">True</property>
538 <property name="halign">start</property>
539 <property name="xalign">0</property>
540 <property name="label" translatable="yes">Domain field is commonly optional and can be
541 left empty.</property>
542 </object>
543 </child>
544 </object>
545 </child>
546 </object>
547 <object class="GtkMenuButton" id="help_domain_button">
548 <property name="visible">True</property>
549 <property name="halign">center</property>
550 <property name="valign">center</property>
551 <property name="can_focus">True</property>
552 <property name="relief">none</property>
553 <property name="sensitive">True</property>
554 <property name="popover">domain_help_popover</property>
555 <style>
556 <class name="image-button"/>
557 </style>
558 <child>
559 <object class="GtkImage">
560 <property name="visible">True</property>
561 <property name="can_focus">False</property>
562 <property name="icon-name">help-about-symbolic</property>
563 <property name="icon-size">1</property>
564 </object>
565 </child>
566 </object>
567
568 <packing>
569 <property name="left-attach">2</property>
570 <property name="top-attach">1</property>
571 </packing>
572 </child>
573
574 <child>
575 <object class="GtkImage">
576 <property name="can_focus">False</property>
577 <property name="icon_name">document-edit-symbolic</property>
578 <property name="icon_size">1</property>
579 <property name="visible">True</property>
580 </object>
581 </child>
582 </object>
583 </child>
584 </object>
585 </child>
586 </object>
587 <packing>
588 <property name="left-attach">0</property>
589 <property name="top-attach">3</property>
590 <property name="width">2</property>
591 </packing>
592 </child>
593 </object>
594 </child>
595 </object>
596 </child>
597
598 <child>
599 <object class="GtkBox">
600 <property name="visible">True</property>
601 <property name="orientation">horizontal</property>
602 <property name="homogeneous">True</property>
603 <child>
604 <object class="GtkButton" id="cancel_authentication_button">
605 <property name="visible">True</property>
606 <property name="name">cancel_button</property>
607 <property name="halign">fill</property>
608 <property name="valign">center</property>
609 <property name="hexpand">True</property>
610 <property name="can_focus">True</property>
611 <property name="sensitive">True</property>
612 <signal name="clicked" handler="cancel_authentication_clicked" object="ConnectionsDialogsWindow" swapped="no" />
613 <child>
614 <object class="GtkLabel">
615 <property name="visible">True</property>
616 <property name="label" translatable="yes">Cancel</property>
617 <property name="margin-top">6</property>
618 <property name="margin-bottom">6</property>
619 <property name="margin-start">6</property>
620 <property name="margin-end">6</property>
621 <attributes>
622 <attribute name="weight" value="bold"/>
623 </attributes>
624 </object>
625 </child>
626 </object>
627 </child>
628
629 <child>
630 <object class="GtkButton" id="authenticate_authentication_button">
631 <property name="visible">True</property>
632 <property name="name">authenticate_button</property>
633 <property name="halign">fill</property>
634 <property name="hexpand">True</property>
635 <property name="valign">center</property>
636 <property name="can_focus">True</property>
637 <property name="sensitive">True</property>
638 <signal name="clicked" handler="authenticate_button_clicked" object="ConnectionsDialogsWindow" swapped="no" />
639 <child>
640 <object class="GtkLabel">
641 <property name="visible">True</property>
642 <property name="label" translatable="yes">Authenticate</property>
643 <property name="margin-top">6</property>
644 <property name="margin-bottom">6</property>
645 <property name="margin-start">6</property>
646 <property name="margin-end">6</property>
647 <attributes>
648 <attribute name="weight" value="bold"/>
649 </attributes>
650 </object>
651 </child>
652 <style>
653 <class name="suggested-action"/>
654 </style>
655 </object>
656 </child>
657 </object>
658 </child>
659 </object>
660 <packing>
661 <property name="name">authentication</property>
662 </packing>
663 </child>
664 </object>
665 </child>
666 </object>
667 </child>
668 </template>
669 </interface>