gnome-control-center/panels/sharing/cc-sharing-panel.ui
Automeris naranja 0f2b8afef3 sharing: Add "Security" heading in the "File Sharing" dialog
In the "File Sharing" dialog, add a "Security" heading
in the section that groups the "Require Password" and
"Password" rows.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2583#note_2113966
2024-05-28 09:40:28 +00:00

193 lines
9.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcSharingPanel" parent="CcPanel">
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage" id="sharing_panel">
<child>
<object class="AdwPreferencesGroup">
<property name="margin-bottom">12</property>
<child>
<object class="CcHostnameEntry" id="hostname_entry">
<property name="title" translatable="yes">_Device Name</property>
<property name="use-underline">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="main_list_box">
<child>
<object class="CcListRow" id="personal_file_sharing_row">
<property name="icon-name">folder-remote-symbolic</property>
<property name="show-arrow">True</property>
<property name="subtitle" translatable="yes">Share files with other devices on the current network</property>
<property name="title" translatable="yes">_File Sharing</property>
<signal name="activated" handler="adw_dialog_present" object="personal_file_sharing_dialog"/>
</object>
</child>
<child>
<object class="CcListRow" id="media_sharing_row">
<property name="icon-name">applications-multimedia-symbolic</property>
<property name="show-arrow">True</property>
<property name="subtitle" translatable="yes">Stream music, photos and videos to devices on the current network</property>
<property name="title" translatable="yes">_Media Sharing</property>
<signal name="activated" handler="adw_dialog_present" object="media_sharing_dialog"/>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
<object class="AdwDialog" id="personal_file_sharing_dialog">
<property name="title" translatable="yes">File Sharing</property>
<property name="content-width">360</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwToastOverlay" id="personal_file_sharing_toast_overlay">
<property name="child">
<object class="AdwPreferencesPage" id="personal_file_sharing_page">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwActionRow" id="personal_file_sharing_enable_row">
<property name="title" translatable="yes">_File Sharing</property>
<property name="use-underline">True</property>
<child type="suffix">
<object class="CcListRowInfoButton" id="personal_file_sharing_info_button">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="personal_file_sharing_address_row">
<property name="title" translatable="yes">File Sharing _Address</property>
<property name="use-underline">True</property>
<property name="use-markup">False</property>
<style>
<class name="property"/>
</style>
<child type="suffix">
<object class="GtkButton">
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Copy</property>
<property name="icon-name">edit-copy-symbolic</property>
<signal name="clicked" handler="on_copy_personal_file_sharing_address_clicked" object="CcSharingPanel" swapped="yes"/>
<style>
<class name="flat"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwButtonRow">
<property name="title" translatable="yes">_Open Public Folder</property>
<property name="end-icon-name">adw-external-link-symbolic</property>
<property name="use-underline">True</property>
<signal name="activated" handler="on_public_folder_row_clicked" object="CcSharingPanel" swapped="yes"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Security</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">_Require Password</property>
<property name="use_underline">True</property>
<property name="activatable-widget">personal_file_sharing_require_password_switch</property>
<child type="suffix">
<object class="CcListRowInfoButton">
<property name="valign">center</property>
<property name="text" translatable="yes">Password is required on devices that want to access shared content.
It may still be possible for devices on this network to see what content is being shared.</property>
</object>
</child>
<child>
<object class="GtkSwitch" id="personal_file_sharing_require_password_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPasswordEntryRow" id="personal_file_sharing_password_entry_row">
<property name="title" translatable="yes">_Password</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</property>
</object>
<object class="AdwDialog" id="media_sharing_dialog">
<property name="title" translatable="yes">Media Sharing</property>
<property name="content-width">360</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage" id="media_sharing_page">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwActionRow" id="media_sharing_enable_row">
<property name="title" translatable="yes">_Media Sharing</property>
<property name="use-underline">True</property>
<child type="suffix">
<object class="CcListRowInfoButton">
<property name="valign">center</property>
<property name="text" translatable="yes">Media sharing allows streaming pictures, music and video to DLNA enabled devices on the current network.</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Folders</property>
<child>
<object class="GtkListBox" id="shared_folders_listbox">
<property name="selection-mode">none</property>
<style>
<class name="boxed-list" />
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</interface>