Tue, 23 Aug 2022 02:54:58 -0500
Port account manager to GTK4
Testing Done:
Opened manager, clicked on all the dialog buttons, and checked for no warnings. Did not check that adding/removing, or changing options really worked.
Reviewed at https://reviews.imfreedom.org/r/1629/
|
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> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | <object class="GtkButton" id="reconnect"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
32 | <property name="label" translatable="1">Reconnect</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
33 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
34 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | <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
|
38 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | <object class="GtkButton" id="reenable"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
42 | <property name="label" translatable="1">Re-enable</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
43 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
44 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | <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
|
48 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | <object class="GtkButton" id="modify"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
52 | <property name="label" translatable="1">Modify Account</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
53 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
54 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | <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
|
58 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | <object class="GtkButton" id="remove"> |
|
41556
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
62 | <property name="focusable">1</property> |
|
aea59a349641
Port the notifications API to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41441
diff
changeset
|
63 | <property name="receives-default">1</property> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | <property name="halign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | <property name="valign">center</property> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | <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
|
67 | <style> |
|
750d7d2581fe
Port notifications to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41556
diff
changeset
|
68 | <class name="flat"/> |
|
750d7d2581fe
Port notifications to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41556
diff
changeset
|
69 | </style> |
|
41441
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | <child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | <object class="GtkImage"> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | <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
|
73 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | </object> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | </child> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | </template> |
|
e114ed471a1e
Implement the UI for the new Notifications API.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | </interface> |