pidgin/resources/Prefs/proxy.ui

Tue, 13 May 2025 00:49:03 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 13 May 2025 00:49:03 -0500
changeset 43249
ae9ab6159a80
parent 43194
77aadc520684
permissions
-rw-r--r--

Start of the appearance preferences

Testing Done:
Toggled the preference and verified the key file updated. Also edited the key file and verified the widget updated.

Bugs closed: PIDGIN-18082

Reviewed at https://reviews.imfreedom.org/r/3996/

<?xml version="1.0" encoding="UTF-8"?>
<!--
Pidgin - Internet Messenger
Copyright (C) Pidgin Developers <devel@pidgin.im>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, see <https://www.gnu.org/licenses/>.
-->
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="Adw" version="1.2"/>
  <!-- interface-license-type gplv2 -->
  <!-- interface-name Pidgin -->
  <!-- interface-description Internet Messenger -->
  <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
  <template class="PidginProxyPrefs" parent="AdwPreferencesPage">
    <property name="icon-name">network-transmit-receive-symbolic</property>
    <property name="title" translatable="yes">Proxy</property>
    <child>
      <object class="AdwPreferencesGroup" id="gnome">
        <property name="title" translatable="yes">Proxy Server</property>
        <property name="description" translatable="yes">Proxy preferences are configured in GNOME preferences</property>
        <child>
          <object class="AdwActionRow" id="gnome_not_found">
            <property name="title" translatable="yes">Proxy configuration program was not found.</property>
            <property name="css-classes">error</property>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="gnome_program">
            <property name="activatable">1</property>
            <property name="title" translatable="yes">Configure _Proxy</property>
            <property name="use-underline">1</property>
            <signal name="activated" handler="proxy_row_activated_cb" object="PidginProxyPrefs" swapped="no"/>
            <child>
              <object class="GtkImage">
                <property name="icon-name">go-next-symbolic</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup" id="nongnome">
        <property name="title" translatable="yes">Proxy Server</property>
        <property name="focusable">0</property>
        <child>
          <object class="AdwComboRow" id="type">
            <property name="title" translatable="yes">Proxy t_ype</property>
            <property name="use-subtitle">1</property>
            <property name="use-underline">1</property>
            <property name="focusable">1</property>
            <property name="model">
              <object class="GtkStringList">
                <items>
                  <!-- the order of this list must be consistent with
                       prefs/pidginproxyprefs.c at all times. -->
                  <item>none</item>
                  <item>socks4</item>
                  <item>socks5</item>
                  <item>tor</item>
                  <item>http</item>
                  <item>envvar</item>
                </items>
              </object>
            </property>
            <property name="expression">
              <closure type="gchararray" function="proxy_type_expression_cb"/>
            </property>
          </object>
        </child>
        <child>
          <object class="AdwPreferencesRow" id="options">
            <property name="focusable">0</property>
            <child>
              <object class="GtkListBox">
                <child>
                  <object class="AdwEntryRow" id="host">
                    <property name="title" translatable="yes">_Host</property>
                    <property name="use-underline">1</property>
                  </object>
                </child>
                <child>
                  <object class="AdwEntryRow" id="port">
                    <property name="title" translatable="yes">P_ort</property>
                    <property name="use-underline">1</property>
                    <property name="focusable">0</property>
                    <property name="input-purpose">number</property>
                  </object>
                </child>
                <child>
                  <object class="AdwEntryRow" id="username">
                    <property name="title" translatable="yes">User_name</property>
                    <property name="use-underline">1</property>
                    <property name="focusable">0</property>
                  </object>
                </child>
                <child>
                  <object class="AdwPasswordEntryRow" id="password">
                    <property name="title" translatable="yes">Pa_ssword</property>
                    <property name="use-underline">1</property>
                    <property name="focusable">0</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>

mercurial