pidgin/resources/Prefs/credentialprovider.ui

Fri, 16 Sep 2022 01:54:11 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Fri, 16 Sep 2022 01:54:11 -0500
changeset 41694
83e6692c76a3
parent 41640
d8636f8db50a
child 42196
2e49acd1c587
permissions
-rw-r--r--

Change the credential provider row active indicator to a CheckButton

Because I noticed that Adw has a style that is for this sort of thing.

Testing Done:
Opened Credential prefs, and changed selected provider. Also checked that clicking the check button didn't accidentally change its state without changing the row, and that it could not be selected by keyboard separately from the row.

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

40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
2 <!-- Generated with glade 3.38.2
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
3
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
4 Pidgin - Internet Messenger
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
5 Copyright (C) Pidgin Developers <devel@pidgin.im>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
6
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
7 This program is free software; you can redistribute it and/or
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
8 modify it under the terms of the GNU General Public License
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
9 as published by the Free Software Foundation; either version 2
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
10 of the License, or (at your option) any later version.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
11
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
12 This program is distributed in the hope that it will be useful,
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
15 GNU General Public License for more details.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
16
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
18 along with this program; if not, write to the Free Software
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
20
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
21 -->
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
22 <interface>
41581
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
23 <requires lib="gtk" version="4.0"/>
41520
a5dd595361b4 Replace libhandy with libadwaita
Gary Kramlich <grim@reaperworld.com>
parents: 40873
diff changeset
24 <requires lib="libadwaita" version="0.0"/>
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
25 <!-- interface-license-type gplv2 -->
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
26 <!-- interface-name Pidgin -->
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
27 <!-- interface-description Internet Messenger -->
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
28 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
41520
a5dd595361b4 Replace libhandy with libadwaita
Gary Kramlich <grim@reaperworld.com>
parents: 40873
diff changeset
29 <template class="PidginCredentialProviderRow" parent="AdwActionRow">
41581
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
30 <property name="focusable">1</property>
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
31 <property name="activatable">1</property>
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
32 <child>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
33 <object class="GtkButton" id="configure">
41640
d8636f8db50a Use GtkBuilder-based bindings in prefs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41581
diff changeset
34 <property name="sensitive" bind-source="PidginCredentialProviderRow" bind-property="active">0</property>
41581
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
35 <property name="focusable">1</property>
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
36 <property name="receives-default">1</property>
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
37 <property name="halign">center</property>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
38 <property name="valign">center</property>
41581
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
39 <child>
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
40 <object class="GtkImage">
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
41 <property name="icon-name">document-properties-symbolic</property>
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
42 </object>
732b1fcb8e31 Fix prefs on GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
43 </child>
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
44 <style>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
45 <class name="circular"/>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
46 </style>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
47 </object>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
48 </child>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
49 <child>
41694
83e6692c76a3 Change the credential provider row active indicator to a CheckButton
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41640
diff changeset
50 <object class="GtkCheckButton" id="active">
83e6692c76a3 Change the credential provider row active indicator to a CheckButton
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41640
diff changeset
51 <property name="can-target">0</property>
83e6692c76a3 Change the credential provider row active indicator to a CheckButton
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41640
diff changeset
52 <property name="css-classes">selection-mode</property>
83e6692c76a3 Change the credential provider row active indicator to a CheckButton
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41640
diff changeset
53 <property name="focusable">0</property>
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
54 <property name="valign">center</property>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
55 </object>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
56 </child>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
57 </template>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
58 </interface>

mercurial