pidgin/resources/Protocols/chooser.ui

Fri, 16 May 2025 00:01:26 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 16 May 2025 00:01:26 -0500
changeset 43259
490b270f217e
parent 41692
ee44db31a1e3
permissions
-rw-r--r--

Update Pidgin.ProtocolChooser to hide in-development protocols

If developer-mode is enabled then in-development protocols will be shown,
otherwise they are hidden.

Testing Done:
Opened the account manager with the setting off and verified that only ircv3 and demo were shown. Turned the setting on with the account manager still opened and verified that the chooser updated to show the in-development protocols.

Also called in the turtles.

Reviewed at https://reviews.imfreedom.org/r/4008/

40297
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
41585
af28a422c1ad Port PidginProtocolChooser to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41280
diff changeset
2 <!--
40297
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 Pidgin - Internet Messenger
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 Copyright (C) Pidgin Developers <devel@pidgin.im>
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 This program is free software; you can redistribute it and/or
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 modify it under the terms of the GNU General Public License
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 as published by the Free Software Foundation; either version 2
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 of the License, or (at your option) any later version.
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 This program is distributed in the hope that it will be useful,
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 GNU General Public License for more details.
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
41585
af28a422c1ad Port PidginProtocolChooser to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41280
diff changeset
17 along with this library; if not, see <https://www.gnu.org/licenses/>.
40297
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 -->
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 <interface domain="pidgin">
41585
af28a422c1ad Port PidginProtocolChooser to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41280
diff changeset
20 <requires lib="gtk" version="4.0"/>
41649
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
21 <requires lib="Adw" version="1.0"/>
40787
8a5a20a49e9b Fix some issues with the protocol chooser and clean up its usage in GtkAccount
Gary Kramlich <grim@reaperworld.com>
parents: 40741
diff changeset
22 <requires lib="pidgin" version="3.0"/>
40297
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 <!-- interface-license-type gplv2 -->
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 <!-- interface-name Pidgin -->
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 <!-- interface-description Internet Messenger -->
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
41691
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
27 <template class="PidginProtocolChooser" parent="AdwComboRow">
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
28 <property name="factory">
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
29 <object class="GtkBuilderListItemFactory">
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
30 <property name="bytes">
41649
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
31 <![CDATA[
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
32 <?xml version="1.0" encoding="UTF-8"?>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
33 <interface>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
34 <template class="GtkListItem">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
35 <property name="child">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
36 <object class="GtkBox">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
37 <property name="orientation">horizontal</property>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
38 <property name="spacing">6</property>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
39 <child>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
40 <object class="GtkImage">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
41 <binding name="icon-name">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
42 <lookup name="icon-name" type="PurpleProtocol">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
43 <lookup name="item">GtkListItem</lookup>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
44 </lookup>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
45 </binding>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
46 </object>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
47 </child>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
48 <child>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
49 <object class="GtkLabel">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
50 <property name="xalign">0</property>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
51 <binding name="label">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
52 <lookup name="name" type="PurpleProtocol">
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
53 <lookup name="item">GtkListItem</lookup>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
54 </lookup>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
55 </binding>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
56 </object>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
57 </child>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
58 </object>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
59 </property>
40297
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 </template>
082c07053a79 Add the new PidginProtocolChooser and implement it in account dialog
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 </interface>
41649
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
62 ]]>
41691
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
63 </property>
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
64 </object>
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
65 </property>
41692
ee44db31a1e3 Add details to protocol chooser list
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41691
diff changeset
66 <property name="list-factory">
ee44db31a1e3 Add details to protocol chooser list
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41691
diff changeset
67 <object class="GtkBuilderListItemFactory">
ee44db31a1e3 Add details to protocol chooser list
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41691
diff changeset
68 <property name="resource">/im/pidgin/Pidgin3/Protocols/detailed-view.ui</property>
ee44db31a1e3 Add details to protocol chooser list
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41691
diff changeset
69 </object>
ee44db31a1e3 Add details to protocol chooser list
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41691
diff changeset
70 </property>
41691
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
71 <property name="model">
43259
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
72 <object class="GtkSortListModel">
41691
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
73 <property name="sorter">
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
74 <object class="GtkStringSorter">
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
75 <property name="expression">
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
76 <lookup name="name" type="PurpleProtocol"/>
41649
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
77 </property>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
78 </object>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
79 </property>
43259
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
80 <property name="model">
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
81 <object class="GtkFilterListModel" id="filter_model">
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
82 <property name="filter">
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
83 <object class="GtkCustomFilter" id="filter"/>
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
84 </property>
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
85 </object>
490b270f217e Update Pidgin.ProtocolChooser to hide in-development protocols
Gary Kramlich <grim@reaperworld.com>
parents: 41692
diff changeset
86 </property>
41649
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
87 </object>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
88 </property>
41691
83849603277b Convert PidginProtocolChooser to an AdwComboRow
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41649
diff changeset
89 <signal name="notify::selected" handler="dropdown_changed_cb" object="PidginProtocolChooser" swapped="no"/>
41649
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
90 </template>
35733be03440 Convert the protocol chooser to a GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41645
diff changeset
91 </interface>

mercurial