pidgin/resources/Prefs/network.ui

Mon, 07 Aug 2023 23:19:00 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 07 Aug 2023 23:19:00 -0500
changeset 42265
f73d7d49a91c
parent 42031
246377e2c6ee
child 43010
9a3485b096c8
permissions
-rw-r--r--

Remove the notify plugin

This hasn't been building by default for a while and depends on a whole bunch
of old conversation window api that it is the only consumer of. Also most people
nowadays are used to just getting a badge which is what we're planning on doing in
the near future. For all these reasons, we should just delete this.

Testing Done:
Ran `ninja turtles` without issue.

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

<?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.0"/>
  <!-- interface-license-type gplv2 -->
  <!-- interface-name Pidgin -->
  <!-- interface-description Internet Messenger -->
  <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
  <object class="GtkAdjustment" id="ports_range_end.adjustment">
    <property name="upper">65535</property>
    <property name="step-increment">1</property>
    <property name="page-increment">10</property>
  </object>
  <object class="GtkAdjustment" id="ports_range_start.adjustment">
    <property name="upper">65535</property>
    <property name="step-increment">1</property>
    <property name="page-increment">10</property>
  </object>
  <template class="PidginNetworkPrefs" parent="AdwPreferencesPage">
    <child>
      <object class="AdwPreferencesGroup">
        <property name="title" translatable="1">IP Address</property>
        <child>
          <object class="AdwEntryRow" id="stun_server">
            <property name="title" translatable="1">ST_UN server</property>
            <property name="use-underline">1</property>
            <property name="input-purpose">url</property>
            <child>
              <object class="GtkEventControllerFocus">
                <signal name="leave" handler="network_stun_server_changed_cb" object="stun_server" swapped="no"/>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="auto_ip_row">
            <property name="activatable-widget">auto_ip</property>
            <property name="title" translatable="1">Use _automatically detected IP address</property>
            <property name="use-underline">1</property>
            <property name="focusable">0</property>
            <child>
              <object class="GtkSwitch" id="auto_ip">
                <property name="focusable">1</property>
                <property name="valign">center</property>
                <signal name="notify::active" handler="auto_ip_button_clicked_cb" after="yes" swapped="no"/>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwEntryRow" id="public_ip">
            <property name="title" translatable="1">Public _IP</property>
            <property name="use-underline">1</property>
            <property name="sensitive" bind-source="auto_ip" bind-property="active" bind-flags="sync-create|invert-boolean">0</property>
            <signal name="changed" handler="network_ip_changed" swapped="no"/>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup">
        <property name="title" translatable="1">Ports</property>
        <child>
          <object class="AdwActionRow">
            <property name="activatable-widget">map_ports</property>
            <property name="title" translatable="1">_Enable automatic router port forwarding</property>
            <property name="use-underline">1</property>
            <property name="focusable">0</property>
            <child>
              <object class="GtkSwitch" id="map_ports">
                <property name="focusable">1</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwExpanderRow" id="ports_range_use">
            <property name="title" translatable="1">_Manually specify range of ports to listen on</property>
            <property name="show-enable-switch">1</property>
            <property name="use-underline">1</property>
            <property name="focusable">0</property>
            <child>
              <object class="AdwActionRow">
                <property name="activatable-widget">ports_range_start</property>
                <property name="title" translatable="1">_Start</property>
                <property name="use-underline">1</property>
                <property name="focusable">0</property>
                <child>
                  <object class="GtkSpinButton" id="ports_range_start">
                    <property name="focusable">1</property>
                    <property name="valign">center</property>
                    <property name="text" translatable="1">0</property>
                    <property name="adjustment">ports_range_start.adjustment</property>
                    <property name="numeric">1</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="AdwActionRow">
                <property name="activatable-widget">ports_range_end</property>
                <property name="title" translatable="1">_End</property>
                <property name="use-underline">1</property>
                <property name="focusable">0</property>
                <child>
                  <object class="GtkSpinButton" id="ports_range_end">
                    <property name="focusable">1</property>
                    <property name="valign">center</property>
                    <property name="text" translatable="1">0</property>
                    <property name="adjustment">ports_range_end.adjustment</property>
                    <property name="numeric">1</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>

mercurial