pidgin/resources/notification.ui

Mon, 30 Jun 2025 23:04:59 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 30 Jun 2025 23:04:59 -0500
changeset 43273
b2e7a32950ae
parent 43182
9e12c632516e
permissions
-rw-r--r--

Update metainfo.xml for the release

And prepare for the next release right away.

Testing Done:
Ran `meson dist`

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

42940
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 <!--
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 Pidgin - Internet Messenger
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 Copyright (C) Pidgin Developers <devel@pidgin.im>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 This program is free software; you can redistribute it and/or
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 modify it under the terms of the GNU General Public License
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 as published by the Free Software Foundation; either version 2
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 of the License, or (at your option) any later version.
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 This program is distributed in the hope that it will be useful,
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 GNU General Public License for more details.
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 along with this program; if not, see <https://www.gnu.org/licenses/>.
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 -->
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 <interface>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 <requires lib="gtk" version="4.0"/>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 <requires lib="Adw" version="1.0"/>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22 <!-- interface-license-type gplv2 -->
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 <!-- interface-name Pidgin -->
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 <!-- interface-description Internet Messenger -->
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 <template class="PidginNotification" parent="GtkBox">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 <property name="orientation">horizontal</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 <property name="spacing">6</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 <property name="margin-start">2</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 <property name="margin-end">2</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 <property name="margin-top">2</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 <property name="margin-bottom">2</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 <child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 <object class="GtkImage" id="icon">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 <property name="icon-size">large</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 <property name="halign">center</property>
42966
228d9d3637a0 Make sure everything in notifications is vertically aligned to the top
Gary Kramlich <grim@reaperworld.com>
parents: 42946
diff changeset
37 <property name="valign">start</property>
42940
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 <binding name="icon-name">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 <lookup name="icon-name" type="PurpleNotification">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 <lookup name="notification">PidginNotification</lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 </lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 </binding>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 </object>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 </child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 <child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 <object class="GtkBox" id="details">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 <property name="halign">fill</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 <property name="hexpand">true</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 <property name="orientation">vertical</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 <property name="spacing">0</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 <property name="valign">center</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 <child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 <object class="GtkLabel">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 <property name="ellipsize">end</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 <property name="lines">3</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 <property name="xalign">0</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 <binding name="label">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 <lookup name="title" type="PurpleNotification">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 <lookup name="notification">PidginNotification</lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 </lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 </binding>
43182
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
62 <style>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
63 <class name="heading"/>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
64 </style>
42940
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 </object>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 </child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 <child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 <object class="GtkLabel">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 <property name="ellipsize">end</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 <property name="lines">3</property>
42946
25a2db55796d Wrap notification subtitles
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42940
diff changeset
71 <property name="wrap">1</property>
42940
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 <property name="xalign">0</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 <binding name="label">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 <lookup name="subtitle" type="PurpleNotification">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 <lookup name="notification">PidginNotification</lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 </lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 </binding>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 <binding name="visible">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 <closure type="gboolean" function="pidgin_notification_show_subtitle">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 <lookup name="subtitle" type="PurpleNotification">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 <lookup name="notification">PidginNotification</lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 </lookup>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 </closure>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 </binding>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 </object>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 </child>
43182
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
87 <child>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
88 <object class="GtkLabel">
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
89 <property name="ellipsize">end</property>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
90 <property name="xalign">0</property>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
91 <binding name="label">
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
92 <closure type="gchararray" function="pidgin_notification_get_timestamp_string">
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
93 <lookup name="created-timestamp" type="PurpleNotification">
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
94 <lookup name="notification">PidginNotification</lookup>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
95 </lookup>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
96 </closure>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
97 </binding>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
98 <style>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
99 <class name="caption"/>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
100 </style>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
101 </object>
9e12c632516e Display the timestamp of notifications
Gary Kramlich <grim@reaperworld.com>
parents: 42966
diff changeset
102 </child>
42940
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 </object>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 </child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 <child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106 <object class="GtkButton">
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 <property name="focusable">1</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 <property name="receives-default">1</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 <property name="icon-name">edit-delete-symbolic</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 <property name="halign">center</property>
42966
228d9d3637a0 Make sure everything in notifications is vertically aligned to the top
Gary Kramlich <grim@reaperworld.com>
parents: 42946
diff changeset
111 <property name="valign">start</property>
42940
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 <property name="action-name">notification.close</property>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113 <style>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 <class name="flat"/>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 </style>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116 </object>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 </child>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 </template>
240eb66a3795 Create Pidgin.Notification to simplify the custom widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 </interface>

mercurial