Fri, 16 Sep 2022 01:54:11 -0500
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/
| 41320 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- Generated with glade 3.38.2 | |
| 3 | ||
| 4 | Pidgin - Internet Messenger | |
| 5 | Copyright (C) Pidgin Developers <devel@pidgin.im> | |
| 6 | ||
| 7 | This program is free software; you can redistribute it and/or | |
| 8 | modify it under the terms of the GNU General Public License | |
| 9 | as published by the Free Software Foundation; either version 2 | |
| 10 | of the License, or (at your option) any later version. | |
| 11 | ||
| 12 | This program is distributed in the hope that it will be useful, | |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | GNU General Public License for more details. | |
| 16 | ||
| 17 | You should have received a copy of the GNU Lesser General Public | |
| 18 | License along with this library; if not, see <https://www.gnu.org/licenses/>. | |
| 19 | ||
| 20 | --> | |
| 21 | <interface> | |
|
41574
5c79e2bb862b
Port status stuff to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41320
diff
changeset
|
22 | <requires lib="gtk" version="4.0"/> |
| 41320 | 23 | <!-- interface-license-type gplv2 --> |
| 24 | <!-- interface-name Pidgin --> | |
| 25 | <!-- interface-description Internet Messenger --> | |
| 26 | <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> | |
| 27 | <object class="GtkListStore" id="model"> | |
| 28 | <columns> | |
| 29 | <!-- column-name id --> | |
| 30 | <column type="gchararray"/> | |
| 31 | <!-- column-name type --> | |
| 32 | <column type="gint"/> | |
| 33 | <!-- column-name icon-name --> | |
| 34 | <column type="gchararray"/> | |
| 35 | <!-- column-name primitive --> | |
| 36 | <column type="gint"/> | |
| 37 | <!-- column-name text --> | |
| 38 | <column type="gchararray"/> | |
| 39 | <!-- column-name data --> | |
| 40 | <column type="gpointer"/> | |
| 41 | <!-- column-name emblem-visible --> | |
| 42 | <column type="gboolean"/> | |
| 43 | </columns> | |
| 44 | </object> | |
| 45 | <template class="PidginStatusBox" parent="GtkBox"> | |
|
41574
5c79e2bb862b
Port status stuff to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41320
diff
changeset
|
46 | <property name="focusable">1</property> |
| 41320 | 47 | <property name="orientation">vertical</property> |
| 48 | <child> | |
| 49 | <object class="GtkComboBox" id="combo"> | |
|
41574
5c79e2bb862b
Port status stuff to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41320
diff
changeset
|
50 | <property name="focusable">1</property> |
| 41320 | 51 | <property name="model">model</property> |
| 52 | <property name="id-column">0</property> | |
| 53 | <signal name="changed" handler="pidgin_status_box_combo_changed_cb" object="PidginStatusBox" swapped="no"/> | |
| 54 | <child> | |
| 55 | <object class="GtkCellRendererPixbuf" id="icon"/> | |
| 56 | <attributes> | |
| 57 | <attribute name="icon-name">2</attribute> | |
| 58 | </attributes> | |
| 59 | </child> | |
| 60 | <child> | |
| 61 | <object class="GtkCellRendererText" id="text"/> | |
| 62 | <attributes> | |
| 63 | <attribute name="markup">4</attribute> | |
| 64 | </attributes> | |
| 65 | </child> | |
| 66 | <child> | |
| 67 | <object class="GtkCellRendererPixbuf" id="emblem"> | |
| 68 | <property name="icon-name">document-save</property> | |
| 69 | </object> | |
| 70 | <attributes> | |
| 71 | <attribute name="visible">6</attribute> | |
| 72 | </attributes> | |
| 73 | </child> | |
| 74 | </object> | |
| 75 | </child> | |
| 76 | </template> | |
| 77 | </interface> |