Fri, 31 Mar 2023 00:40:44 -0500
Migrate away from AdwActionRow:icon-name
This is deprecated in Adwaita 1.3
Testing Done:
Triggered connection error and buddy request in Demo protocol; not sure how to check authorization.
Reviewed at https://reviews.imfreedom.org/r/2410/
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
2 | <!-- |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | Pidgin - Internet Messenger |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | This program is free software; you can redistribute it and/or |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | modify it under the terms of the GNU General Public License |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | as published by the Free Software Foundation; either version 2 |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | of the License, or (at your option) any later version. |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | This program is distributed in the hope that it will be useful, |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | GNU General Public License for more details. |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | You should have received a copy of the GNU General Public License |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
17 | along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | --> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | <interface> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
20 | <requires lib="gtk" version="4.0"/> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
21 | <requires lib="Adw" version="1.0"/> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | <!-- interface-license-type gplv2 --> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | <!-- interface-name Pidgin --> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | <!-- interface-description Internet Messenger --> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
26 | <template class="PidginNotificationConnectionError" parent="AdwActionRow"> |
|
41570
750d7d2581fe
Port notifications to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41556
diff
changeset
|
27 | <property name="focusable">1</property> |
|
750d7d2581fe
Port notifications to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41556
diff
changeset
|
28 | <property name="activatable">0</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | <property name="subtitle-lines">3</property> |
|
42195
ce5c1634c6a1
Migrate away from AdwActionRow:icon-name
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41570
diff
changeset
|
30 | <child type="prefix"> |
|
ce5c1634c6a1
Migrate away from AdwActionRow:icon-name
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41570
diff
changeset
|
31 | <object class="GtkImage" id="icon"> |
|
ce5c1634c6a1
Migrate away from AdwActionRow:icon-name
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41570
diff
changeset
|
32 | <property name="icon-size">large</property> |
|
ce5c1634c6a1
Migrate away from AdwActionRow:icon-name
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41570
diff
changeset
|
33 | <property name="halign">center</property> |
|
ce5c1634c6a1
Migrate away from AdwActionRow:icon-name
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41570
diff
changeset
|
34 | <property name="valign">center</property> |
|
ce5c1634c6a1
Migrate away from AdwActionRow:icon-name
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41570
diff
changeset
|
35 | </object> |
|
ce5c1634c6a1
Migrate away from AdwActionRow:icon-name
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41570
diff
changeset
|
36 | </child> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | <object class="GtkButton" id="reconnect"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
39 | <property name="label" translatable="1">Reconnect</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
40 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
41 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | <property name="action-name">app.connect-account</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | <object class="GtkButton" id="reenable"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
49 | <property name="label" translatable="1">Re-enable</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
50 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
51 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | <property name="action-name">app.enable-account</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | <object class="GtkButton" id="modify"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
59 | <property name="label" translatable="1">Modify Account</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
60 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
61 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | <property name="action-name">app.edit-account</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | <object class="GtkButton" id="remove"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
69 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
70 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | <signal name="clicked" handler="pidgin_notification_connection_error_remove_cb" object="PidginNotificationConnectionError" swapped="no"/> |
|
41570
750d7d2581fe
Port notifications to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41556
diff
changeset
|
74 | <style> |
|
750d7d2581fe
Port notifications to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41556
diff
changeset
|
75 | <class name="flat"/> |
|
750d7d2581fe
Port notifications to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41556
diff
changeset
|
76 | </style> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | <object class="GtkImage"> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | <property name="icon-name">edit-delete-symbolic</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | </template> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | </interface> |