roster/src/preferences-dialog.ui
Pavel Baksy 2545cdd88d Add preferences dialog with TLS and timeout settings
- Add PreferencesDialog with settings for TLS verification and request timeout
- Update HttpClient to respect TLS verification setting
- Add GSettings schema keys for force-tls-verification and request-timeout
- Wire up preferences action to show dialog
- Settings changes apply immediately to HTTP session
2025-12-23 10:17:22 +01:00

50 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="Adw" version="1.0"/>
<template class="PreferencesDialog" parent="AdwPreferencesWindow">
<property name="title" translatable="yes">Preferences</property>
<property name="modal">True</property>
<property name="default-width">600</property>
<property name="default-height">400</property>
<child>
<object class="AdwPreferencesPage">
<property name="title" translatable="yes">General</property>
<property name="icon-name">preferences-system-symbolic</property>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Network</property>
<property name="description" translatable="yes">HTTP connection settings</property>
<child>
<object class="AdwSwitchRow" id="tls_verification_row">
<property name="title" translatable="yes">Force TLS Verification</property>
<property name="subtitle" translatable="yes">Verify TLS certificates for HTTPS connections. Disable to test endpoints with self-signed certificates.</property>
</object>
</child>
<child>
<object class="AdwSpinRow" id="timeout_row">
<property name="title" translatable="yes">Request Timeout</property>
<property name="subtitle" translatable="yes">Maximum time to wait for a response (in seconds)</property>
<property name="adjustment">
<object class="GtkAdjustment">
<property name="lower">5</property>
<property name="upper">300</property>
<property name="step-increment">5</property>
<property name="page-increment">10</property>
<property name="value">30</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>