pidgin/resources/notificationlist.ui

Sat, 21 Sep 2024 16:22:31 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Sat, 21 Sep 2024 16:22:31 -0500
changeset 42960
f80f044d734c
parent 42629
03341514e25a
child 43194
77aadc520684
permissions
-rw-r--r--

Fix keep-aspect-ratio deprecation

We require a new enough GTK to use the new property.

Testing Done:
Compiled, ran, and didn't see the warning any more.

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

<?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"/>
  <requires lib="Adw" version="1.0"/>
  <!-- interface-license-type gplv2 -->
  <!-- interface-name Pidgin -->
  <!-- interface-description Internet Messenger -->
  <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
  <template class="PidginNotificationList" parent="GtkBox">
    <property name="orientation">vertical</property>
    <child>
      <object class="GtkStack" id="stack">
        <property name="vexpand">True</property>
        <child>
          <object class="GtkStackPage">
            <property name="name">view</property>
            <property name="child">
              <object class="GtkListView">
                <property name="model">
                  <object class="GtkSingleSelection" id="selection_model"/>
                </property>
                <property name="factory">
                  <object class="GtkSignalListItemFactory">
                    <signal name="bind" handler="pidgin_notification_list_bind_cb"/>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </child>
        <child>
          <object class="GtkStackPage">
            <property name="name">placeholder</property>
            <property name="child">
              <object class="AdwStatusPage">
                <property name="visible">True</property>
                <property name="can-focus">False</property>
                <property name="icon-name">mail-read-symbolic</property>
                <property name="title" translatable="1">Notifications</property>
                <property name="description" translatable="1">You&apos;re all caught up!</property>
              </object>
            </property>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>

mercurial