Tue, 17 Sep 2024 00:56:55 -0500
Create Pidgin.Notification to simplify the custom widgets
This should be much easier to maintain as it keeps everything encapsulated.
PidginNotificationAuthorizationRequest was removed as nothing creates these
notifications right now.
PidginNotificationConnectionError was removed as we are currently in the
process of reworking the way connection errors work and this is in the way of
that.
Testing Done:
Created a bunch of test notifications with the demo protocol plugin and called in the turtles.
Bugs closed: PIDGIN-17929, PIDGIN-17942
Reviewed at https://reviews.imfreedom.org/r/3480/
|
42011
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | <!-- |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | Pidgin - Internet Messenger |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | This program is free software; you can redistribute it and/or |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | modify it under the terms of the GNU General Public License |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | as published by the Free Software Foundation; either version 2 |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | of the License, or (at your option) any later version. |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | This program is distributed in the hope that it will be useful, |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | GNU General Public License for more details. |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | You should have received a copy of the GNU General Public License |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | --> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | <interface domain="pidgin"> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | <requires lib="gtk" version="4.0"/> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | <!-- interface-license-type gplv2 --> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | <!-- interface-name Pidgin --> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | <!-- interface-description Internet Messenger --> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
|
42059
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
25 | <template class="PidginContactList" parent="GtkBox"> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
26 | <property name="orientation">vertical</property> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
27 | <child> |
|
42577
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
28 | <object class="PidginInfoPane"> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
29 | <property name="title" translatable="yes">Contacts</property> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
30 | <property name="child"> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
31 | <object class="GtkBox"> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
32 | <property name="margin-end">6</property> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
33 | <property name="orientation">horizontal</property> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
34 | <property name="spacing">6</property> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
35 | <property name="valign">center</property> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
36 | <child> |
|
42593
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
37 | <object class="GtkToggleButton" id="show_offline"> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
38 | <signal name="toggled" handler="pidgin_contact_list_show_offline_toggled_cb"/> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
39 | <child> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
40 | <object class="GtkLabel"> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
41 | <property name="label" translatable="yes">Show _Offline Contacts</property> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
42 | <property name="use-underline">true</property> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
43 | <property name="mnemonic-widget">show_offline</property> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
44 | </object> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
45 | </child> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
46 | </object> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
47 | </child> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
48 | <child> |
|
42577
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
49 | <object class="GtkSearchEntry" id="search_entry"> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
50 | <property name="placeholder-text" translatable="yes">Search</property> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
51 | <signal name="search-changed" handler="pidgin_contact_list_search_changed_cb"/> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
52 | </object> |
|
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
53 | </child> |
|
42059
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
54 | </object> |
|
42577
f8b477a1b0b6
Add an InfoPane to the Contacts widget and move search to it
Gary Kramlich <grim@reaperworld.com>
parents:
42522
diff
changeset
|
55 | </property> |
|
42059
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
56 | </object> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
57 | </child> |
|
42011
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | <child> |
|
42522
011b13928d5e
Some minor cleanups in PidginContactList
Gary Kramlich <grim@reaperworld.com>
parents:
42516
diff
changeset
|
59 | <object class="GtkListView"> |
|
42059
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
60 | <property name="hexpand">1</property> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
61 | <property name="vexpand">1</property> |
|
42011
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | <property name="factory"> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | <object class="GtkBuilderListItemFactory"> |
|
42516
9ac4a8394577
Move the contact list item to its own ui file
Gary Kramlich <grim@reaperworld.com>
parents:
42304
diff
changeset
|
64 | <property name="resource">/im/pidgin/Pidgin3/contactlistitem.ui</property> |
|
42011
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | </object> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | </property> |
|
42059
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
67 | <property name="model"> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
68 | <object class="GtkSingleSelection"> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
69 | <property name="autoselect">1</property> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
70 | <property name="model"> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
71 | <object class="GtkFilterListModel" id="filter_model"> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
72 | <property name="incremental">0</property> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
73 | <property name="filter"> |
|
42237
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
74 | <object class="GtkEveryFilter"> |
|
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
75 | <child> |
|
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
76 | <object class="GtkCustomFilter" id="account_connected_filter"/> |
|
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
77 | </child> |
|
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
78 | <child> |
|
42593
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
79 | <object class="GtkCustomFilter" id="offline_filter"/> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
80 | </child> |
|
c821b5ab8895
Add a show offline buddies toggle button to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42577
diff
changeset
|
81 | <child> |
|
42237
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
82 | <object class="GtkCustomFilter" id="search_filter"/> |
|
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
83 | </child> |
|
57c9deea59c8
Add a custom filter to PidginContactList to filter out disconnected accounts
Gary Kramlich <grim@reaperworld.com>
parents:
42185
diff
changeset
|
84 | </object> |
|
42059
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
85 | </property> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
86 | </object> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
87 | </property> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
88 | </object> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
89 | </property> |
|
e6dcbf0db616
Add search support to the contact list
Gary Kramlich <grim@reaperworld.com>
parents:
42053
diff
changeset
|
90 | <signal name="activate" handler="pidgin_contact_list_activate_cb"/> |
|
42011
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | </object> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | </child> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | </template> |
|
bb38b9441073
Create a new PidginContactList widget that shows the PurplePersons that PurpleContactManager is tracking
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | </interface> |