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/
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
2 | <!-- |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
3 | Pidgin - Internet Messenger |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
4 | Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
5 | |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
6 | This program is free software; you can redistribute it and/or |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
7 | modify it under the terms of the GNU General Public License |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
8 | as published by the Free Software Foundation; either version 2 |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
9 | of the License, or (at your option) any later version. |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
10 | |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
11 | This program is distributed in the hope that it will be useful, |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
14 | GNU General Public License for more details. |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
15 | |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
16 | You should have received a copy of the GNU General Public License |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
17 | along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
18 | --> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
19 | <interface> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
20 | <requires lib="gtk" version="4.0"/> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
21 | <requires lib="pidgin" version="3.0"/> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
22 | <!-- interface-license-type gplv2 --> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
23 | <!-- interface-name Pidgin --> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
24 | <!-- interface-description Internet Messenger --> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
25 | <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
26 | <object class="GtkListStore" id="allow_store"> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
27 | <columns> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
28 | <column type="gchararray"/> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
29 | </columns> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
30 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
31 | <object class="GtkListStore" id="block_store"> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
32 | <columns> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
33 | <column type="gchararray"/> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
34 | </columns> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
35 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
36 | <template class="PidginPrivacyDialog" parent="GtkDialog"> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
37 | <property name="title" translatable="1">Privacy</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
38 | <signal name="close" handler="gtk_window_destroy" swapped="no"/> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
39 | <child internal-child="content_area"> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
40 | <object class="GtkBox"> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
41 | <property name="orientation">vertical</property> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
42 | <property name="spacing">6</property> |
|
41643
f7af70658fe5
Convert privacy combo box to the new drop down
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41629
diff
changeset
|
43 | <property name="vexpand">1</property> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
44 | <child> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
45 | <object class="GtkLabel"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
46 | <property name="valign">center</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
47 | <property name="label" translatable="1">Changes to privacy settings take effect immediately.</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
48 | <property name="xalign">0</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
49 | </object> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
50 | </child> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
51 | <child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
52 | <object class="GtkBox"> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
53 | <property name="spacing">5</property> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
54 | <child> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
55 | <object class="GtkLabel" id="label1"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
56 | <property name="halign">center</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
57 | <property name="label" translatable="1">Set privacy for:</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
58 | <property name="use-underline">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
59 | <property name="mnemonic-widget">account_chooser</property> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
60 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
61 | </child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
62 | <child> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
63 | <object class="PidginAccountChooser" id="account_chooser"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
64 | <property name="hexpand">1</property> |
|
41864
6f490dec468f
Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41854
diff
changeset
|
65 | <property name="filter"> |
|
6f490dec468f
Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41854
diff
changeset
|
66 | <object class="PidginAccountFilterConnected"/> |
|
6f490dec468f
Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41854
diff
changeset
|
67 | </property> |
|
41854
c1d7e7445b0f
Avoid GtkComboBox-isms with PidginAccountChooser
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41643
diff
changeset
|
68 | <signal name="notify::account" handler="select_account_cb" swapped="no"/> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
69 | <accessibility> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
70 | <relation name="labelled-by">label1</relation> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
71 | </accessibility> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
72 | </object> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
73 | </child> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
74 | </object> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
75 | </child> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
76 | <child> |
|
41643
f7af70658fe5
Convert privacy combo box to the new drop down
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41629
diff
changeset
|
77 | <object class="GtkDropDown" id="type_menu"> |
|
f7af70658fe5
Convert privacy combo box to the new drop down
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41629
diff
changeset
|
78 | <property name="model"> |
|
f7af70658fe5
Convert privacy combo box to the new drop down
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41629
diff
changeset
|
79 | <object class="GtkStringList"> |
|
f7af70658fe5
Convert privacy combo box to the new drop down
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41629
diff
changeset
|
80 | </object> |
|
f7af70658fe5
Convert privacy combo box to the new drop down
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41629
diff
changeset
|
81 | </property> |
|
f7af70658fe5
Convert privacy combo box to the new drop down
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41629
diff
changeset
|
82 | <signal name="notify::selected" handler="type_changed_cb" object="PidginPrivacyDialog" swapped="no"/> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
83 | </object> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
84 | </child> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
85 | <child> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
86 | <object class="GtkScrolledWindow" id="allow_widget"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
87 | <property name="vexpand">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
88 | <property name="height-request">200</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
89 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
90 | <property name="child"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
91 | <object class="GtkTreeView" id="allow_list"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
92 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
93 | <property name="model">allow_store</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
94 | <property name="headers-visible">0</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
95 | <property name="search-column">0</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
96 | <child internal-child="selection"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
97 | <object class="GtkTreeSelection"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
98 | <signal name="changed" handler="user_selected_cb" object="PidginPrivacyDialog" swapped="no"/> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
99 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
100 | </child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
101 | <child> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
102 | <object class="GtkTreeViewColumn"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
103 | <property name="clickable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
104 | <property name="sort-column-id">0</property> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
105 | <child> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
106 | <object class="GtkCellRendererText"/> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
107 | <attributes> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
108 | <attribute name="text">0</attribute> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
109 | </attributes> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
110 | </child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
111 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
112 | </child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
113 | </object> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
114 | </property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
115 | </object> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
116 | </child> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
117 | <child> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
118 | <object class="GtkScrolledWindow" id="block_widget"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
119 | <property name="vexpand">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
120 | <property name="height-request">200</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
121 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
122 | <property name="child"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
123 | <object class="GtkTreeView" id="block_list"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
124 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
125 | <property name="model">block_store</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
126 | <property name="headers-visible">0</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
127 | <child internal-child="selection"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
128 | <object class="GtkTreeSelection"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
129 | <signal name="changed" handler="user_selected_cb" object="PidginPrivacyDialog" swapped="no"/> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
130 | </object> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
131 | </child> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
132 | <child> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
133 | <object class="GtkTreeViewColumn"> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
134 | <property name="clickable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
135 | <property name="sort-column-id">0</property> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
136 | <child> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
137 | <object class="GtkCellRendererText"/> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
138 | <attributes> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
139 | <attribute name="text">0</attribute> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
140 | </attributes> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
141 | </child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
142 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
143 | </child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
144 | </object> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
145 | </property> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
146 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
147 | </child> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
148 | </object> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
149 | </child> |
|
41501
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
150 | <child type="action"> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
151 | <object class="GtkButton" id="add_button"> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
152 | <property name="label">_Add</property> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
153 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
154 | <property name="receives-default">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
155 | <property name="use-underline">1</property> |
|
41501
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
156 | <signal name="clicked" handler="add_cb" object="PidginPrivacyDialog" swapped="no"/> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
157 | </object> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
158 | </child> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
159 | <child type="action"> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
160 | <object class="GtkButton" id="remove_button"> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
161 | <property name="label">_Remove</property> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
162 | <property name="sensitive">0</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
163 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
164 | <property name="receives-default">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
165 | <property name="use-underline">1</property> |
|
41501
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
166 | <signal name="clicked" handler="remove_cb" object="PidginPrivacyDialog" swapped="no"/> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
167 | </object> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
168 | </child> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
169 | <child type="action"> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
170 | <object class="GtkButton" id="removeall_button"> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
171 | <property name="label" translatable="1">Remove Al_l</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
172 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
173 | <property name="receives-default">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
174 | <property name="use-underline">1</property> |
|
41501
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
175 | <signal name="clicked" handler="removeall_cb" object="PidginPrivacyDialog" swapped="no"/> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
176 | </object> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
177 | </child> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
178 | <child type="action"> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
179 | <object class="GtkButton" id="close_button"> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
180 | <property name="label">_Close</property> |
|
41589
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
181 | <property name="focusable">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
182 | <property name="receives-default">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
183 | <property name="use-underline">1</property> |
|
779fc4417138
Port the privacy dialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41501
diff
changeset
|
184 | <signal name="clicked" handler="gtk_window_destroy" object="PidginPrivacyDialog" swapped="yes"/> |
|
41501
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
185 | </object> |
|
e34ec115fc34
Move dialog buttons to action widgets
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41014
diff
changeset
|
186 | </child> |
|
40251
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
187 | </template> |
|
41e9424fc96f
Convert Privacy dialog to Glade.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
188 | </interface> |