pidgin/resources/Accounts/editor.ui

Fri, 28 Mar 2025 00:32:48 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 28 Mar 2025 00:32:48 -0500
changeset 43208
b81c104ccbe0
parent 43194
77aadc520684
permissions
-rw-r--r--

Fix an alignment issue with the conversation 3 vertical dots menu

If a conversation had notifications and you selected or hovered over it, the
notifications would hide, but the 3 vertical dots menu would be positioned
like the notifications were still visible.

Testing Done:
Joined a bunch of channels and waited for notifications to popup and then verified that the 3 vertical dots menu was in the correct place.

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

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 

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="Adw" version="1.0"/>
  <requires lib="gtk" version="4.0"/>
  <requires lib="pidgin" version="3.0"/>
  <!-- interface-license-type gplv2 -->
  <!-- interface-name Pidgin -->
  <!-- interface-description Internet Messenger -->
  <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
  <template class="PidginAccountEditor" parent="AdwPreferencesPage">
    <property name="vexpand">1</property>
    <property name="hexpand">1</property>
    <child>
      <object class="AdwPreferencesGroup" id="login_options">
        <property name="title" translatable="yes">Login Options</property>
        <child>
          <object class="PidginProtocolChooser" id="protocol">
            <property name="title" translatable="yes">Pro_tocol</property>
            <property name="use-underline">1</property>
            <signal name="notify::protocol" handler="pidgin_account_editor_protocol_changed_cb" object="PidginAccountEditor" swapped="no"/>
          </object>
        </child>
        <child>
          <object class="AdwPreferencesRow">
            <property name="focusable">0</property>
            <child>
              <object class="GtkListBox" id="user_splits">
                <property name="focusable">0</property>
                <child>
                  <object class="AdwEntryRow" id="username">
                    <property name="focusable">0</property>
                    <property name="title" translatable="yes">_Username</property>
                    <property name="use-underline">1</property>
                    <signal name="changed" handler="pidgin_account_editor_username_changed_cb" object="PidginAccountEditor" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="require_password_row">
            <property name="activatable-widget">avatar</property>
            <property name="focusable">0</property>
            <property name="title" translatable="yes">Require _password</property>
            <property name="subtitle" translatable="yes">This account has an optional password, setting this will make it required</property>
            <property name="use-underline">1</property>
            <property name="visible">0</property>
            <child type="suffix">
              <object class="GtkSwitch" id="require_password">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup">
        <property name="title" translatable="yes">User Options</property>
        <child>
          <object class="AdwEntryRow" id="alias">
            <property name="focusable">0</property>
            <property name="title" translatable="yes">_Local alias</property>
            <property name="use-underline">1</property>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="avatar_row">
            <property name="activatable-widget">avatar</property>
            <property name="focusable">0</property>
            <property name="title" translatable="yes">Use custom _avatar</property>
            <property name="use-underline">1</property>
            <property name="visible">0</property>
            <child type="prefix">
              <object class="GtkSwitch" id="use_custom_avatar">
                <property name="valign">center</property>
              </object>
            </child>
            <child>
              <object class="GtkButton">
                <property name="css-classes">flat</property>
                <property name="valign">center</property>
                <binding name="sensitive">
                  <lookup name="active">use_custom_avatar</lookup>
                </binding>
                <child>
                  <object class="GtkImage" id="avatar">
                    <property name="icon-name">select-avatar</property>
                    <property name="icon-size">large</property>
                  </object>
                </child>
                <signal name="clicked" handler="pidgin_account_editor_avatar_set_clicked_cb" object="PidginAccountEditor" swapped="no"/>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="remove">
                <property name="label" translatable="yes">_Remove</property>
                <property name="use-underline">1</property>
                <property name="valign">center</property>
                <binding name="sensitive">
                  <lookup name="active">use_custom_avatar</lookup>
                </binding>
                <signal name="clicked" handler="pidgin_account_editor_avatar_remove_clicked_cb" object="PidginAccountEditor" swapped="no"/>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup" id="advanced_group">
        <property name="title" translatable="yes">Advanced Options</property>
        <property name="description" translatable="yes">Additional options for this account.</property>
        <property name="visible">0</property>
        <child type="header-suffix">
          <object class="GtkSwitch" id="advanced_toggle">
            <property name="active">0</property>
            <property name="valign">center</property>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup">
        <property name="title" translatable="yes">Proxy</property>
        <child>
          <object class="AdwComboRow" id="proxy_type">
            <property name="title" translatable="yes">Proxy t_ype</property>
            <property name="use-underline">1</property>
            <property name="use-subtitle">1</property>
            <property name="model">
              <object class="GtkStringList">
                <items>
                  <item>global</item>
                  <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="pidgin_account_editor_proxy_type_expression_cb"/>
            </property>
            <signal name="notify::selected" handler="pidgin_account_editor_proxy_type_changed_cb" object="PidginAccountEditor" swapped="no"/>
          </object>
        </child>
        <child>
          <object class="AdwPreferencesRow" id="proxy_options">
            <property name="focusable">0</property>
            <property name="visible">0</property>
            <child>
              <object class="GtkListBox">
                <property name="focusable">0</property>
                <child>
                  <object class="AdwEntryRow" id="proxy_host">
                    <property name="focusable">0</property>
                    <property name="title" translatable="yes">_Host</property>
                    <property name="use-underline">1</property>
                  </object>
                </child>
                <child>
                  <object class="AdwEntryRow" id="proxy_port">
                    <property name="focusable">0</property>
                    <property name="title" translatable="yes">P_ort</property>
                    <property name="use-underline">1</property>
                    <property name="input-purpose">number</property>
                  </object>
                </child>
                <child>
                  <object class="AdwEntryRow" id="proxy_username">
                    <property name="focusable">0</property>
                    <property name="title" translatable="yes">User_name</property>
                    <property name="use-underline">1</property>
                  </object>
                </child>
                <child>
                  <object class="AdwPasswordEntryRow" id="proxy_password">
                    <property name="focusable">0</property>
                    <property name="title" translatable="yes">Pa_ssword</property>
                    <property name="use-underline">1</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>

mercurial