| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<template class="FrgPreferencesDialog" parent="AdwPreferencesDialog"> |
| 4 |
<child> |
| 5 |
<object class="AdwPreferencesPage"> |
| 6 |
<property name="icon_name">emblem-system-symbolic</property> |
| 7 |
<property name="title" translatable="yes">General</property> |
| 8 |
<child> |
| 9 |
<object class="AdwPreferencesGroup"> |
| 10 |
<property name="title" translatable="yes">Behavior</property> |
| 11 |
<child> |
| 12 |
<object class="AdwActionRow"> |
| 13 |
<property name="title" translatable="yes">Inhibit _Suspend</property> |
| 14 |
<property name="subtitle" translatable="yes">Prevent the computer from suspending while torrents are being downloaded</property> |
| 15 |
<property name="use_underline">True</property> |
| 16 |
<property name="activatable_widget">inhibit_suspend_active_torrents_switch</property> |
| 17 |
<child> |
| 18 |
<object class="GtkSwitch" id="inhibit_suspend_active_torrents_switch"> |
| 19 |
<property name="valign">center</property> |
| 20 |
</object> |
| 21 |
</child> |
| 22 |
</object> |
| 23 |
</child> |
| 24 |
<child> |
| 25 |
<object class="AdwActionRow"> |
| 26 |
<property name="title" translatable="yes">_Trash Torrent Files</property> |
| 27 |
<property name="subtitle" translatable="yes">Automatically moves torrent files to the trash after adding them</property> |
| 28 |
<property name="use_underline">True</property> |
| 29 |
<property name="activatable_widget">trash_original_torrent_files_switch</property> |
| 30 |
<child> |
| 31 |
<object class="GtkSwitch" id="trash_original_torrent_files_switch"> |
| 32 |
<property name="valign">center</property> |
| 33 |
</object> |
| 34 |
</child> |
| 35 |
</object> |
| 36 |
</child> |
| 37 |
</object> |
| 38 |
</child> |
| 39 |
<child> |
| 40 |
<object class="AdwPreferencesGroup"> |
| 41 |
<property name="title" translatable="yes">Notifications</property> |
| 42 |
<child> |
| 43 |
<object class="AdwActionRow"> |
| 44 |
<property name="title" translatable="yes">_New Torrent Added</property> |
| 45 |
<property name="use_underline">True</property> |
| 46 |
<property name="activatable_widget">notifications_new_torrent_switch</property> |
| 47 |
<child> |
| 48 |
<object class="GtkSwitch" id="notifications_new_torrent_switch"> |
| 49 |
<property name="valign">center</property> |
| 50 |
</object> |
| 51 |
</child> |
| 52 |
</object> |
| 53 |
</child> |
| 54 |
<child> |
| 55 |
<object class="AdwActionRow"> |
| 56 |
<property name="title" translatable="yes">_Torrent Completely Downloaded</property> |
| 57 |
<property name="use_underline">True</property> |
| 58 |
<property name="activatable_widget">notifications_downloaded_switch</property> |
| 59 |
<child> |
| 60 |
<object class="GtkSwitch" id="notifications_downloaded_switch"> |
| 61 |
<property name="valign">center</property> |
| 62 |
</object> |
| 63 |
</child> |
| 64 |
</object> |
| 65 |
</child> |
| 66 |
</object> |
| 67 |
</child> |
| 68 |
<child> |
| 69 |
<object class="AdwPreferencesGroup" id="remote_access_group"> |
| 70 |
<property name="title" translatable="yes">Remote Control</property> |
| 71 |
<child> |
| 72 |
<object class="AdwActionRow"> |
| 73 |
<property name="title" translatable="yes">Remote Access</property> |
| 74 |
<property name="use_underline">True</property> |
| 75 |
<property name="subtitle" translatable="yes">Allow other devices on the local network to access the local Fragments session</property> |
| 76 |
<property name="activatable_widget">remote_access_switch</property> |
| 77 |
<child> |
| 78 |
<object class="GtkSwitch" id="remote_access_switch"> |
| 79 |
<property name="valign">center</property> |
| 80 |
</object> |
| 81 |
</child> |
| 82 |
</object> |
| 83 |
</child> |
| 84 |
<child> |
| 85 |
<object class="AdwActionRow" id="open_webinterface_row"> |
| 86 |
<property name="title" translatable="yes">Open Webinterface</property> |
| 87 |
<property name="activatable">True</property> |
| 88 |
<child> |
| 89 |
<object class="GtkImage"> |
| 90 |
<property name="icon_name">external-link-symbolic</property> |
| 91 |
<property name="accessible_role">presentation</property> |
| 92 |
</object> |
| 93 |
</child> |
| 94 |
</object> |
| 95 |
</child> |
| 96 |
</object> |
| 97 |
</child> |
| 98 |
</object> |
| 99 |
</child> |
| 100 |
<child> |
| 101 |
<object class="AdwPreferencesPage" id="downloading_page"> |
| 102 |
<property name="icon_name">folder-download-symbolic</property> |
| 103 |
<property name="title" translatable="yes" context="A page title of the preferences dialog">Downloading</property> |
| 104 |
<binding name="sensitive"> |
| 105 |
<lookup name="is_connected" type="TrClient"> |
| 106 |
<lookup name="client" type="FrgConnectionManager"> |
| 107 |
<lookup name="connection_manager">FrgPreferencesDialog</lookup> |
| 108 |
</lookup> |
| 109 |
</lookup> |
| 110 |
</binding> |
| 111 |
<child> |
| 112 |
<object class="AdwPreferencesGroup" id="remote_notice_group"> |
| 113 |
<child> |
| 114 |
<object class="AdwActionRow" id="remote_notice_row"> |
| 115 |
<property name="subtitle" translatable="yes">These settings apply to the remote connection</property> |
| 116 |
<property name="icon_name">network-server-symbolic</property> |
| 117 |
</object> |
| 118 |
</child> |
| 119 |
<style> |
| 120 |
<class name="remote-row"/> |
| 121 |
<class name="notice-row"/> |
| 122 |
</style> |
| 123 |
</object> |
| 124 |
</child> |
| 125 |
<child> |
| 126 |
<object class="AdwPreferencesGroup"> |
| 127 |
<property name="title" translatable="yes">Location</property> |
| 128 |
<child> |
| 129 |
<object class="AdwActionRow"> |
| 130 |
<property name="title" translatable="yes">_Download Directory</property> |
| 131 |
<property name="subtitle" translatable="yes">Where to store downloaded torrents</property> |
| 132 |
<property name="use_underline">True</property> |
| 133 |
<child> |
| 134 |
<object class="GtkButton" id="download_dir_button"> |
| 135 |
<property name="valign">center</property> |
| 136 |
<child> |
| 137 |
<object class="AdwButtonContent" id="download_dir_content"> |
| 138 |
<property name="can-shrink">True</property> |
| 139 |
<property name="icon_name">folder-symbolic</property> |
| 140 |
</object> |
| 141 |
</child> |
| 142 |
</object> |
| 143 |
</child> |
| 144 |
</object> |
| 145 |
</child> |
| 146 |
<child> |
| 147 |
<object class="AdwExpanderRow" id="incomplete_dir_expander"> |
| 148 |
<property name="title" translatable="yes">_Incomplete Torrents</property> |
| 149 |
<property name="subtitle" translatable="yes">Store incomplete torrents in a different directory</property> |
| 150 |
<property name="show_enable_switch">True</property> |
| 151 |
<property name="use_underline">True</property> |
| 152 |
<child> |
| 153 |
<object class="AdwActionRow"> |
| 154 |
<property name="title" translatable="yes">_Incomplete Directory</property> |
| 155 |
<property name="subtitle" translatable="yes">Where to store incomplete torrents</property> |
| 156 |
<property name="use_underline">True</property> |
| 157 |
<child> |
| 158 |
<object class="GtkButton" id="incomplete_dir_button"> |
| 159 |
<property name="valign">center</property> |
| 160 |
<child> |
| 161 |
<object class="AdwButtonContent" id="incomplete_dir_content"> |
| 162 |
<property name="can-shrink">True</property> |
| 163 |
<property name="icon_name">folder-symbolic</property> |
| 164 |
</object> |
| 165 |
</child> |
| 166 |
</object> |
| 167 |
</child> |
| 168 |
</object> |
| 169 |
</child> |
| 170 |
</object> |
| 171 |
</child> |
| 172 |
</object> |
| 173 |
</child> |
| 174 |
<child> |
| 175 |
<object class="AdwPreferencesGroup"> |
| 176 |
<property name="title" translatable="yes">Queue</property> |
| 177 |
<child> |
| 178 |
<object class="AdwExpanderRow" id="download_queue_expander"> |
| 179 |
<property name="title" translatable="yes">Download Queue</property> |
| 180 |
<property name="subtitle" translatable="yes">You can decide which torrents should be downloaded first</property> |
| 181 |
<property name="show_enable_switch">True</property> |
| 182 |
<property name="use_underline">True</property> |
| 183 |
<child> |
| 184 |
<object class="AdwSpinRow" id="download_queue_size_spinbutton"> |
| 185 |
<property name="title" translatable="yes">Maximum _Active Downloads</property> |
| 186 |
<property name="subtitle" translatable="yes">Number of maximum parallel downloads at the same time</property> |
| 187 |
<property name="use_underline">True</property> |
| 188 |
<property name="adjustment"> |
| 189 |
<object class="GtkAdjustment"> |
| 190 |
<property name="upper">1000</property> |
| 191 |
<property name="lower">1</property> |
| 192 |
<property name="step_increment">1</property> |
| 193 |
<property name="page_increment">10</property> |
| 194 |
</object> |
| 195 |
</property> |
| 196 |
<property name="numeric">True</property> |
| 197 |
</object> |
| 198 |
</child> |
| 199 |
</object> |
| 200 |
</child> |
| 201 |
<child> |
| 202 |
<object class="AdwActionRow"> |
| 203 |
<property name="title" translatable="yes">Automatically _Start Torrents</property> |
| 204 |
<property name="subtitle" translatable="yes">Automatically start downloading torrents after adding them</property> |
| 205 |
<property name="use_underline">True</property> |
| 206 |
<property name="activatable_widget">start_added_torrents_switch</property> |
| 207 |
<child> |
| 208 |
<object class="GtkSwitch" id="start_added_torrents_switch"> |
| 209 |
<property name="valign">center</property> |
| 210 |
</object> |
| 211 |
</child> |
| 212 |
</object> |
| 213 |
</child> |
| 214 |
</object> |
| 215 |
</child> |
| 216 |
</object> |
| 217 |
</child> |
| 218 |
<child> |
| 219 |
<object class="AdwPreferencesPage"> |
| 220 |
<property name="icon_name">preferences-system-network-symbolic</property> |
| 221 |
<property name="title" translatable="yes">Network</property> |
| 222 |
<property name="sensitive" bind-source="downloading_page" bind-property="sensitive" bind-flags="sync-create"/> |
| 223 |
<child> |
| 224 |
<object class="AdwPreferencesGroup"> |
| 225 |
<property name="visible" bind-source="remote_notice_group" bind-property="visible" bind-flags="sync-create"/> |
| 226 |
<child> |
| 227 |
<object class="AdwActionRow"> |
| 228 |
<property name="title" bind-source="remote_notice_row" bind-property="title" bind-flags="sync-create"/> |
| 229 |
<property name="subtitle" bind-source="remote_notice_row" bind-property="subtitle" bind-flags="sync-create"/> |
| 230 |
<property name="icon_name" bind-source="remote_notice_row" bind-property="icon_name" bind-flags="sync-create"/> |
| 231 |
</object> |
| 232 |
</child> |
| 233 |
<style> |
| 234 |
<class name="remote-row"/> |
| 235 |
<class name="notice-row"/> |
| 236 |
</style> |
| 237 |
</object> |
| 238 |
</child> |
| 239 |
<child> |
| 240 |
<object class="AdwPreferencesGroup"> |
| 241 |
<property name="title" translatable="yes">Listening Port</property> |
| 242 |
<property name="description" translatable="yes">This port gets used by peers on the internet to connect to you. It's important that the communication works, otherwise you will have a limited ability to connect to other peers and suffer from slower download speeds.</property> |
| 243 |
<child> |
| 244 |
<object class="AdwSpinRow" id="port_spinbutton"> |
| 245 |
<property name="title" translatable="yes">_Port</property> |
| 246 |
<property name="subtitle" translatable="yes">Used for incoming connections</property> |
| 247 |
<property name="use_underline">True</property> |
| 248 |
<property name="adjustment"> |
| 249 |
<object class="GtkAdjustment"> |
| 250 |
<property name="upper">65535</property> |
| 251 |
<property name="lower">1024</property> |
| 252 |
<property name="step_increment">1</property> |
| 253 |
<property name="page_increment">10</property> |
| 254 |
</object> |
| 255 |
</property> |
| 256 |
<property name="numeric">True</property> |
| 257 |
</object> |
| 258 |
</child> |
| 259 |
<child> |
| 260 |
<object class="AdwActionRow"> |
| 261 |
<property name="title" translatable="yes">_Random Port</property> |
| 262 |
<property name="subtitle" translatable="yes">Select a random port on each session startup, can improve privacy</property> |
| 263 |
<property name="use_underline">True</property> |
| 264 |
<property name="activatable_widget">random_port_switch</property> |
| 265 |
<child> |
| 266 |
<object class="GtkSwitch" id="random_port_switch"> |
| 267 |
<property name="valign">center</property> |
| 268 |
</object> |
| 269 |
</child> |
| 270 |
</object> |
| 271 |
</child> |
| 272 |
<child> |
| 273 |
<object class="AdwActionRow"> |
| 274 |
<property name="title" translatable="yes">Port _Forwarding</property> |
| 275 |
<property name="subtitle" translatable="yes">Try using UPnP/NAT-PMP for automatic port forwarding on your router</property> |
| 276 |
<property name="use_underline">True</property> |
| 277 |
<property name="activatable_widget">port_forwarding_switch</property> |
| 278 |
<child> |
| 279 |
<object class="GtkSwitch" id="port_forwarding_switch"> |
| 280 |
<property name="valign">center</property> |
| 281 |
</object> |
| 282 |
</child> |
| 283 |
</object> |
| 284 |
</child> |
| 285 |
<child> |
| 286 |
<object class="GtkBox"> |
| 287 |
<property name="margin-top">18</property> |
| 288 |
<child> |
| 289 |
<object class="GtkBox"> |
| 290 |
<property name="orientation">vertical</property> |
| 291 |
<property name="halign">center</property> |
| 292 |
<property name="hexpand">True</property> |
| 293 |
<property name="spacing">12</property> |
| 294 |
<property name="margin-top">22</property> |
| 295 |
<property name="margin-bottom">22</property> |
| 296 |
<property name="margin-start">12</property> |
| 297 |
<property name="margin-end">12</property> |
| 298 |
<child> |
| 299 |
<object class="GtkBox"> |
| 300 |
<property name="halign">center</property> |
| 301 |
<property name="spacing">12</property> |
| 302 |
<child> |
| 303 |
<object class="GtkBox" id="internet_box"> |
| 304 |
<property name="orientation">vertical</property> |
| 305 |
<property name="spacing">6</property> |
| 306 |
<child> |
| 307 |
<object class="GtkImage"> |
| 308 |
<property name="icon_name">globe-symbolic</property> |
| 309 |
<property name="pixel_size">32</property> |
| 310 |
<property name="accessible-role">presentation</property> |
| 311 |
</object> |
| 312 |
</child> |
| 313 |
<child> |
| 314 |
<object class="GtkLabel"> |
| 315 |
<property name="label" translatable="yes">Internet</property> |
| 316 |
<property name="ellipsize">end</property> |
| 317 |
<style> |
| 318 |
<class name="caption"/> |
| 319 |
</style> |
| 320 |
</object> |
| 321 |
</child> |
| 322 |
</object> |
| 323 |
</child> |
| 324 |
<child> |
| 325 |
<object class="GtkImage"> |
| 326 |
<property name="icon_name">horizontal-arrows-symbolic</property> |
| 327 |
<property name="pixel_size">16</property> |
| 328 |
<property name="accessible-role">presentation</property> |
| 329 |
</object> |
| 330 |
</child> |
| 331 |
<child> |
| 332 |
<object class="GtkBox" id="router_box"> |
| 333 |
<property name="orientation">vertical</property> |
| 334 |
<property name="spacing">6</property> |
| 335 |
<child> |
| 336 |
<object class="GtkImage"> |
| 337 |
<property name="icon_name">network-server-symbolic</property> |
| 338 |
<property name="pixel_size">32</property> |
| 339 |
<property name="accessible-role">presentation</property> |
| 340 |
</object> |
| 341 |
</child> |
| 342 |
<child> |
| 343 |
<object class="GtkLabel"> |
| 344 |
<property name="label" translatable="yes">Router</property> |
| 345 |
<property name="ellipsize">end</property> |
| 346 |
<style> |
| 347 |
<class name="caption"/> |
| 348 |
</style> |
| 349 |
</object> |
| 350 |
</child> |
| 351 |
</object> |
| 352 |
</child> |
| 353 |
<child> |
| 354 |
<object class="GtkImage"> |
| 355 |
<property name="icon_name">horizontal-arrows-symbolic</property> |
| 356 |
<property name="pixel_size">16</property> |
| 357 |
<property name="accessible-role">presentation</property> |
| 358 |
</object> |
| 359 |
</child> |
| 360 |
<child> |
| 361 |
<object class="GtkBox" id="computer_box"> |
| 362 |
<property name="orientation">vertical</property> |
| 363 |
<property name="spacing">6</property> |
| 364 |
<child> |
| 365 |
<object class="GtkImage"> |
| 366 |
<property name="icon_name">computer-symbolic</property> |
| 367 |
<property name="pixel_size">32</property> |
| 368 |
<property name="accessible-role">presentation</property> |
| 369 |
</object> |
| 370 |
</child> |
| 371 |
<child> |
| 372 |
<object class="GtkLabel"> |
| 373 |
<property name="label" translatable="yes">Computer</property> |
| 374 |
<property name="ellipsize">end</property> |
| 375 |
<style> |
| 376 |
<class name="caption"/> |
| 377 |
</style> |
| 378 |
</object> |
| 379 |
</child> |
| 380 |
</object> |
| 381 |
</child> |
| 382 |
</object> |
| 383 |
</child> |
| 384 |
<child> |
| 385 |
<object class="GtkLabel" id="port_test_label"> |
| 386 |
<property name="label" translatable="yes">You can verify your connection by asking <a href="https://transmissionbt.com">transmissionbt.com</a> to test connecting to your computer as peers would.</property> |
| 387 |
<property name="use-markup">True</property> |
| 388 |
<property name="wrap">True</property> |
| 389 |
<property name="justify">center</property> |
| 390 |
<style> |
| 391 |
<class name="subtitle"/> |
| 392 |
</style> |
| 393 |
</object> |
| 394 |
</child> |
| 395 |
<child> |
| 396 |
<object class="GtkButton" id="port_test_button"> |
| 397 |
<property name="halign">center</property> |
| 398 |
<property name="label" translatable="yes">Test</property> |
| 399 |
<signal name="clicked" handler="port_test_clicked" swapped="true"/> |
| 400 |
</object> |
| 401 |
</child> |
| 402 |
</object> |
| 403 |
</child> |
| 404 |
<style> |
| 405 |
<class name="card"/> |
| 406 |
</style> |
| 407 |
</object> |
| 408 |
</child> |
| 409 |
</object> |
| 410 |
</child> |
| 411 |
<child> |
| 412 |
<object class="AdwPreferencesGroup"> |
| 413 |
<property name="title" translatable="yes">Peer Limits</property> |
| 414 |
<property name="description" translatable="yes">You may have to lower the limits if your router can't keep up with the demands of P2P.</property> |
| 415 |
<child> |
| 416 |
<object class="AdwSpinRow" id="max_peers_torrent_spinbutton"> |
| 417 |
<property name="title" translatable="yes">Maximum Peers per _Torrent</property> |
| 418 |
<property name="use_underline">True</property> |
| 419 |
<property name="adjustment"> |
| 420 |
<object class="GtkAdjustment"> |
| 421 |
<property name="upper">500</property> |
| 422 |
<property name="lower">0</property> |
| 423 |
<property name="step_increment">1</property> |
| 424 |
<property name="page_increment">10</property> |
| 425 |
</object> |
| 426 |
</property> |
| 427 |
<property name="numeric">True</property> |
| 428 |
</object> |
| 429 |
</child> |
| 430 |
<child> |
| 431 |
<object class="AdwSpinRow" id="max_peers_overall_spinbutton"> |
| 432 |
<property name="title" translatable="yes">Maximum Peers _Overall</property> |
| 433 |
<property name="use_underline">True</property> |
| 434 |
<property name="adjustment"> |
| 435 |
<object class="GtkAdjustment"> |
| 436 |
<property name="upper">2000</property> |
| 437 |
<property name="lower">0</property> |
| 438 |
<property name="step_increment">1</property> |
| 439 |
<property name="page_increment">10</property> |
| 440 |
</object> |
| 441 |
</property> |
| 442 |
<property name="numeric">True</property> |
| 443 |
</object> |
| 444 |
</child> |
| 445 |
</object> |
| 446 |
</child> |
| 447 |
<child> |
| 448 |
<object class="AdwPreferencesGroup"> |
| 449 |
<property name="title" translatable="yes">Connection Encryption Mode</property> |
| 450 |
<property name="description" translatable="yes"><a href="https://en.wikipedia.org/wiki/BitTorrent_protocol_encryption">BitTorrent Protocol Encryption</a> can be used to improve privacy. It also can help to bypass ISP filters.</property> |
| 451 |
<child> |
| 452 |
<object class="AdwComboRow" id="encryption_comborow"> |
| 453 |
<property name="title" translatable="yes">_Encryption</property> |
| 454 |
<property name="use_underline">True</property> |
| 455 |
<property name="model"> |
| 456 |
<object class="GtkStringList"> |
| 457 |
<!-- Using the order defined in transmission-gobject/src/session.rs --> |
| 458 |
<items> |
| 459 |
<item translatable="yes">Force</item> |
| 460 |
<item translatable="yes">Prefer</item> |
| 461 |
<item translatable="yes">Allow</item> |
| 462 |
</items> |
| 463 |
</object> |
| 464 |
</property> |
| 465 |
</object> |
| 466 |
</child> |
| 467 |
</object> |
| 468 |
</child> |
| 469 |
</object> |
| 470 |
</child> |
| 471 |
</template> |
| 472 |
</interface> |
| 473 |
|