After the port to AdwPreferencesPage and the main switch being moved out from the headerbar, the content of the sharing dialogs got a bit hidden, which requires more scrolling. Fix such issue by removing the height-request property, so the window height can follow the content height. Do the same for the Media Sharing dialog to keep consistency. Also, use the same window width in both dialogs (to also keep consistency).
184 lines
7.5 KiB
XML
184 lines
7.5 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="gtk_window_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="gtk_window_present" object="media_sharing_dialog"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
|
|
<object class="AdwWindow" id="personal_file_sharing_dialog">
|
|
<property name="title" translatable="yes">File Sharing</property>
|
|
<property name="modal">True</property>
|
|
<property name="hide-on-close">True</property>
|
|
<property name="destroy-with-parent">True</property>
|
|
<property name="width-request">360</property>
|
|
<property name="height-request">294</property>
|
|
<property name="default-width">360</property>
|
|
<child>
|
|
<object class="GtkShortcutController">
|
|
<property name="scope">managed</property>
|
|
<child>
|
|
<object class="GtkShortcut">
|
|
<property name="trigger">Escape</property>
|
|
<property name="action">action(window.close)</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar"/>
|
|
</child>
|
|
<property name="content">
|
|
<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>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwSwitchRow" id="personal_file_sharing_require_password_switch_row">
|
|
<property name="title" translatable="yes">_Require Password</property>
|
|
<property name="use_underline">True</property>
|
|
</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>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="title" translatable="yes">Networks</property>
|
|
<child>
|
|
<object class="GtkBox" id="personal_file_sharing_vbox">
|
|
<property name="orientation">vertical</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
|
|
|
|
<object class="AdwWindow" id="media_sharing_dialog">
|
|
<property name="title" translatable="yes">Media Sharing</property>
|
|
<property name="modal">True</property>
|
|
<property name="hide-on-close">True</property>
|
|
<property name="destroy-with-parent">True</property>
|
|
<property name="width-request">360</property>
|
|
<property name="height-request">294</property>
|
|
<property name="default-width">360</property>
|
|
<child>
|
|
<object class="GtkShortcutController">
|
|
<property name="scope">managed</property>
|
|
<child>
|
|
<object class="GtkShortcut">
|
|
<property name="trigger">Escape</property>
|
|
<property name="action">action(window.close)</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar"/>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwPreferencesPage">
|
|
<property name="description" translatable="yes">Share music, photos and videos over the network</property>
|
|
<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>
|
|
</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>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="title" translatable="yes">Networks</property>
|
|
<child>
|
|
<object class="GtkBox" id="media_sharing_vbox">
|
|
<property name="orientation">vertical</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</interface>
|