Sun, 30 Oct 2022 03:29:33 -0500
Move PidginAccountChooser to GtkDropDown
The chooser connects to the default account manager automatically.
Additionally, re-parent the `GtkTreeModelFilter` subclasses to `GtkFilter`, and use them on the `filter` property.
This also means the previous `filter_func` that was moved to `GtkFilter` in /r/1995 are now used again.
Testing Done:
Opened most of the affected dialogs. Disabled XMPP account and saw that it was removed from all connected-only filtered choosers. Re-enabled account and it was back in the choosers.
Confirmed that only XMPP, and not Demo accounts appeared in the two XMPP-specific plugins.
Request API is still only compile-tested.
Reviewed at https://reviews.imfreedom.org/r/1992/
|
40824
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
2 | <!-- |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
3 | |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
4 | Pidgin - Internet Messenger |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
5 | Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
6 | |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
7 | This program is free software; you can redistribute it and/or |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
8 | modify it under the terms of the GNU General Public License |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
9 | as published by the Free Software Foundation; either version 2 |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
10 | of the License, or (at your option) any later version. |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
11 | |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
12 | This program is distributed in the hope that it will be useful, |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
15 | GNU General Public License for more details. |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
16 | |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
17 | You should have received a copy of the GNU General Public License |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
18 | along with this program; if not, write to the Free Software |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
20 | |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
21 | --> |
|
40810
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | <interface> |
|
41536
ba0797a477e7
Convert PidginAvatar to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40824
diff
changeset
|
23 | <requires lib="gtk" version="4.0"/> |
|
40824
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
24 | <!-- interface-license-type gplv2 --> |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
25 | <!-- interface-name Pidgin --> |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
26 | <!-- interface-description Internet Messenger --> |
|
132c763c26e4
Refresh all of the ui files
Gary Kramlich <grim@reaperworld.com>
parents:
40821
diff
changeset
|
27 | <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
|
40810
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | <menu id="menu"> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | <section> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | <item> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | <attribute name="label" translatable="yes">Save Avatar As...</attribute> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | <attribute name="action">avatar.save-avatar</attribute> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | </item> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | <item> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | <attribute name="label" translatable="yes">Set Custom Avatar...</attribute> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | <attribute name="action">avatar.set-custom-avatar</attribute> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | </item> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | <item> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | <attribute name="label" translatable="yes">Clear Custom Avatar</attribute> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | <attribute name="action">avatar.clear-custom-avatar</attribute> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | </item> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | </section> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | </menu> |
|
28d50eece92d
Create a PidginAvatar widget.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | </interface> |