pidgin/resources/notification.ui

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

mercurial