pidgin/resources/Conversations/message.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 43163
b650ebd3e157
child 43248
55ff17a82093
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"?>
<!--
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 library; if not, see <https://www.gnu.org/licenses/>.
-->
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="PidginMessage">
    <property name="orientation">horizontal</property>
    <child>
      <object class="GtkEventControllerMotion" id="motion_controller"/>
    </child>
    <child>
      <object class="GtkBox">
        <property name="hexpand">1</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkBox">
            <property name="spacing">8</property>
            <child>
              <object class="PidginConversationMember">
                <binding name="conversation-member">
                  <lookup name="author" type="PurpleMessage">
                    <lookup name="message">PidginMessage</lookup>
                  </lookup>
                </binding>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="edited">
                <binding name="visible">
                  <lookup name="edited" type="PurpleMessage">
                    <lookup name="message">PidginMessage</lookup>
                  </lookup>
                </binding>
                <property name="label" translatable="yes">(edited)</property>
                <property name="has-tooltip">1</property>
                <signal name="query-tooltip" handler="pidgin_message_query_tooltip_edited_cb"/>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="timestamp">
                <binding name="visible">
                  <lookup name="contains_pointer">motion_controller</lookup>
                </binding>
                <binding name="label">
                  <closure type="gchararray" function="pidgin_message_get_timestamp_string">
                    <lookup name="message">PidginMessage</lookup>
                  </closure>
                </binding>
                <property name="has-tooltip">1</property>
                <signal name="query-tooltip" handler="pidgin_message_query_tooltip_timestamp_cb"/>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkLabel" id="content">
            <property name="wrap">1</property>
            <property name="wrap-mode">word-char</property>
            <property name="xalign">0</property>
            <property name="yalign">0</property>
            <property name="use-markup">1</property>
            <binding name="label">
              <closure type="gchararray" function="pidgin_message_process_message_contents_cb">
                <lookup name="contents" type="PurpleMessage">
                  <lookup name="message">PidginMessage</lookup>
                </lookup>
              </closure>
            </binding>
            <binding name="attributes">
              <closure type="PangoAttrList" function="pidgin_message_get_message_attributes">
                <lookup name="message">PidginMessage</lookup>
              </closure>
            </binding>
            <property name="has-tooltip">1</property>
            <signal name="query-tooltip" handler="pidgin_message_query_tooltip_contents_cb"/>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>

mercurial