| 24 <requires lib="pidgin" version="3.0"/> |
24 <requires lib="pidgin" version="3.0"/> |
| 25 <!-- interface-license-type gplv2 --> |
25 <!-- interface-license-type gplv2 --> |
| 26 <!-- interface-name Pidgin --> |
26 <!-- interface-name Pidgin --> |
| 27 <!-- interface-description Internet Messenger --> |
27 <!-- interface-description Internet Messenger --> |
| 28 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
28 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
| 29 <template class="PidginAccountEditor" parent="GtkDialog"> |
29 <template class="PidginAccountEditor" parent="AdwPreferencesPage"> |
| 30 <property name="resizable">0</property> |
30 <property name="vexpand">1</property> |
| 31 <property name="default-height">600</property> |
31 <property name="hexpand">1</property> |
| 32 <property name="default-width">400</property> |
32 <child> |
| 33 <property name="title" translatable="1">Edit Account</property> |
33 <object class="AdwPreferencesGroup" id="login_options"> |
| 34 <signal name="response" handler="pidgin_account_editor_response_cb" swapped="no"/> |
34 <property name="title" translatable="1">Login Options</property> |
| 35 <child internal-child="content_area"> |
35 <child> |
| 36 <object class="GtkBox"> |
36 <object class="PidginProtocolChooser" id="protocol"> |
| 37 <property name="vexpand">1</property> |
37 <property name="title" translatable="1">Pro_tocol</property> |
| 38 <child> |
38 <property name="use-underline">1</property> |
| 39 <object class="AdwPreferencesPage"> |
39 <signal name="notify::protocol" handler="pidgin_account_editor_protocol_changed_cb" object="PidginAccountEditor" swapped="no"/> |
| 40 <property name="vexpand">1</property> |
40 </object> |
| 41 <property name="hexpand">1</property> |
41 </child> |
| 42 <child> |
42 <child> |
| 43 <object class="AdwPreferencesGroup" id="login_options"> |
43 <object class="AdwPreferencesRow"> |
| 44 <property name="title" translatable="1">Login Options</property> |
44 <property name="focusable">0</property> |
| 45 <child> |
45 <child> |
| 46 <object class="PidginProtocolChooser" id="protocol"> |
46 <object class="GtkListBox" id="user_splits"> |
| 47 <property name="title" translatable="1">Pro_tocol</property> |
47 <property name="focusable">0</property> |
| 48 <property name="use-underline">1</property> |
48 <child> |
| 49 <signal name="notify::protocol" handler="pidgin_account_editor_protocol_changed_cb" object="PidginAccountEditor" swapped="no"/> |
49 <object class="AdwEntryRow" id="username"> |
| 50 </object> |
50 <property name="focusable">0</property> |
| 51 </child> |
51 <property name="title" translatable="1">_Username</property> |
| 52 <child> |
52 <property name="use-underline">1</property> |
| 53 <object class="AdwPreferencesRow"> |
53 <signal name="changed" handler="pidgin_account_editor_username_changed_cb" object="PidginAccountEditor" swapped="no"/> |
| 54 <property name="focusable">0</property> |
54 </object> |
| 55 <child> |
55 </child> |
| 56 <object class="GtkListBox" id="user_splits"> |
56 </object> |
| 57 <property name="focusable">0</property> |
57 </child> |
| 58 <child> |
58 </object> |
| 59 <object class="AdwEntryRow" id="username"> |
59 </child> |
| 60 <property name="focusable">0</property> |
60 <child> |
| 61 <property name="title" translatable="1">_Username</property> |
61 <object class="AdwActionRow" id="require_password_row"> |
| 62 <property name="use-underline">1</property> |
62 <property name="activatable-widget">avatar</property> |
| 63 <signal name="changed" handler="pidgin_account_editor_username_changed_cb" object="PidginAccountEditor" swapped="no"/> |
63 <property name="focusable">0</property> |
| 64 </object> |
64 <property name="title" translatable="1">Require _password</property> |
| 65 </child> |
65 <property name="subtitle" translatable="1">This account has an optional password, setting this will make it required</property> |
| 66 </object> |
66 <property name="use-underline">1</property> |
| 67 </child> |
67 <property name="visible">0</property> |
| 68 </object> |
68 <child type="suffix"> |
| 69 </child> |
69 <object class="GtkSwitch" id="require_password"> |
| 70 <child> |
70 <property name="valign">center</property> |
| 71 <object class="AdwActionRow" id="require_password_row"> |
71 </object> |
| 72 <property name="activatable-widget">avatar</property> |
72 </child> |
| 73 <property name="focusable">0</property> |
73 </object> |
| 74 <property name="title" translatable="1">Require _password</property> |
74 </child> |
| 75 <property name="subtitle" translatable="1">This account has an optional password, setting this will make it required</property> |
75 </object> |
| 76 <property name="use-underline">1</property> |
76 </child> |
| 77 <property name="visible">0</property> |
77 <child> |
| 78 <child type="suffix"> |
78 <object class="AdwPreferencesGroup"> |
| 79 <object class="GtkSwitch" id="require_password"> |
79 <property name="title" translatable="1">User Options</property> |
| 80 <property name="valign">center</property> |
80 <child> |
| 81 </object> |
81 <object class="AdwEntryRow" id="alias"> |
| 82 </child> |
82 <property name="focusable">0</property> |
| 83 </object> |
83 <property name="title" translatable="1">_Local alias</property> |
| 84 </child> |
84 <property name="use-underline">1</property> |
| 85 </object> |
85 </object> |
| 86 </child> |
86 </child> |
| 87 <child> |
87 <child> |
| 88 <object class="AdwPreferencesGroup"> |
88 <object class="AdwActionRow" id="avatar_row"> |
| 89 <property name="title" translatable="1">User Options</property> |
89 <property name="activatable-widget">avatar</property> |
| 90 <child> |
90 <property name="focusable">0</property> |
| 91 <object class="AdwEntryRow" id="alias"> |
91 <property name="title" translatable="1">Use custom _avatar</property> |
| 92 <property name="focusable">0</property> |
92 <property name="use-underline">1</property> |
| 93 <property name="title" translatable="1">_Local alias</property> |
93 <property name="visible">0</property> |
| 94 <property name="use-underline">1</property> |
94 <child type="prefix"> |
| 95 </object> |
95 <object class="GtkSwitch" id="use_custom_avatar"> |
| 96 </child> |
96 <property name="valign">center</property> |
| 97 <child> |
97 </object> |
| 98 <object class="AdwActionRow" id="avatar_row"> |
98 </child> |
| 99 <property name="activatable-widget">avatar</property> |
99 <child> |
| 100 <property name="focusable">0</property> |
100 <object class="GtkButton"> |
| 101 <property name="title" translatable="1">Use custom _avatar</property> |
101 <property name="css-classes">flat</property> |
| 102 <property name="use-underline">1</property> |
102 <property name="valign">center</property> |
| 103 <property name="visible">0</property> |
103 <binding name="sensitive"> |
| 104 <child type="prefix"> |
104 <lookup name="active">use_custom_avatar</lookup> |
| 105 <object class="GtkSwitch" id="use_custom_avatar"> |
105 </binding> |
| 106 <property name="valign">center</property> |
106 <child> |
| 107 </object> |
107 <object class="GtkImage" id="avatar"> |
| 108 </child> |
108 <property name="icon-name">select-avatar</property> |
| 109 <child> |
109 <property name="icon-size">large</property> |
| 110 <object class="GtkButton"> |
110 </object> |
| 111 <property name="css-classes">flat</property> |
111 </child> |
| 112 <property name="valign">center</property> |
112 <signal name="clicked" handler="pidgin_account_editor_avatar_set_clicked_cb" object="PidginAccountEditor" swapped="no"/> |
| 113 <binding name="sensitive"> |
113 </object> |
| 114 <lookup name="active">use_custom_avatar</lookup> |
114 </child> |
| 115 </binding> |
115 <child> |
| 116 <child> |
116 <object class="GtkButton" id="remove"> |
| 117 <object class="GtkImage" id="avatar"> |
117 <property name="label" translatable="1">_Remove</property> |
| 118 <property name="icon-name">select-avatar</property> |
118 <property name="use-underline">1</property> |
| 119 <property name="icon-size">large</property> |
119 <property name="valign">center</property> |
| 120 </object> |
120 <binding name="sensitive"> |
| 121 </child> |
121 <lookup name="active">use_custom_avatar</lookup> |
| 122 <signal name="clicked" handler="pidgin_account_editor_avatar_set_clicked_cb" object="PidginAccountEditor" swapped="no"/> |
122 </binding> |
| 123 </object> |
123 <signal name="clicked" handler="pidgin_account_editor_avatar_remove_clicked_cb" object="PidginAccountEditor" swapped="no"/> |
| 124 </child> |
124 </object> |
| 125 <child> |
125 </child> |
| 126 <object class="GtkButton" id="remove"> |
126 </object> |
| 127 <property name="label" translatable="1">_Remove</property> |
127 </child> |
| 128 <property name="use-underline">1</property> |
128 </object> |
| 129 <property name="valign">center</property> |
129 </child> |
| 130 <binding name="sensitive"> |
130 <child> |
| 131 <lookup name="active">use_custom_avatar</lookup> |
131 <object class="AdwPreferencesGroup" id="advanced_group"> |
| 132 </binding> |
132 <property name="title" translatable="1">Advanced Options</property> |
| 133 <signal name="clicked" handler="pidgin_account_editor_avatar_remove_clicked_cb" object="PidginAccountEditor" swapped="no"/> |
133 <property name="description" translatable="1">Additional options for this account.</property> |
| 134 </object> |
134 <property name="visible">0</property> |
| 135 </child> |
135 <child type="header-suffix"> |
| 136 </object> |
136 <object class="GtkSwitch" id="advanced_toggle"> |
| 137 </child> |
137 <property name="active">0</property> |
| 138 </object> |
138 <property name="valign">center</property> |
| 139 </child> |
139 </object> |
| 140 <child> |
140 </child> |
| 141 <object class="AdwPreferencesGroup" id="advanced_group"> |
141 </object> |
| 142 <property name="title" translatable="1">Advanced Options</property> |
142 </child> |
| 143 <property name="description" translatable="1">Additional options for this account.</property> |
143 <child> |
| 144 <property name="visible">0</property> |
144 <object class="AdwPreferencesGroup"> |
| 145 <child type="header-suffix"> |
145 <property name="title" translatable="1">Proxy</property> |
| 146 <object class="GtkSwitch" id="advanced_toggle"> |
146 <child> |
| 147 <property name="active">0</property> |
147 <object class="AdwComboRow" id="proxy_type"> |
| 148 <property name="valign">center</property> |
148 <property name="title" translatable="1">Proxy t_ype</property> |
| 149 </object> |
149 <property name="use-underline">1</property> |
| 150 </child> |
150 <property name="use-subtitle">1</property> |
| 151 </object> |
151 <property name="model"> |
| 152 </child> |
152 <object class="GtkStringList"> |
| 153 <child> |
153 <items> |
| 154 <object class="AdwPreferencesGroup"> |
154 <item>global</item> |
| 155 <property name="title" translatable="1">Proxy</property> |
155 <item>none</item> |
| 156 <child> |
156 <item>socks4</item> |
| 157 <object class="AdwComboRow" id="proxy_type"> |
157 <item>socks5</item> |
| 158 <property name="title" translatable="1">Proxy t_ype</property> |
158 <item>tor</item> |
| 159 <property name="use-underline">1</property> |
159 <item>http</item> |
| 160 <property name="use-subtitle">1</property> |
160 <item>envvar</item> |
| 161 <property name="model"> |
161 </items> |
| 162 <object class="GtkStringList"> |
162 </object> |
| 163 <items> |
163 </property> |
| 164 <item>global</item> |
164 <property name="expression"> |
| 165 <item>none</item> |
165 <closure type="gchararray" function="pidgin_account_editor_proxy_type_expression_cb"/> |
| 166 <item>socks4</item> |
166 </property> |
| 167 <item>socks5</item> |
167 <signal name="notify::selected" handler="pidgin_account_editor_proxy_type_changed_cb" object="PidginAccountEditor" swapped="no"/> |
| 168 <item>tor</item> |
168 </object> |
| 169 <item>http</item> |
169 </child> |
| 170 <item>envvar</item> |
170 <child> |
| 171 </items> |
171 <object class="AdwPreferencesRow" id="proxy_options"> |
| 172 </object> |
172 <property name="focusable">0</property> |
| 173 </property> |
173 <property name="visible">0</property> |
| 174 <property name="expression"> |
174 <child> |
| 175 <closure type="gchararray" function="pidgin_account_editor_proxy_type_expression_cb"/> |
175 <object class="GtkListBox"> |
| 176 </property> |
176 <property name="focusable">0</property> |
| 177 <signal name="notify::selected" handler="pidgin_account_editor_proxy_type_changed_cb" object="PidginAccountEditor" swapped="no"/> |
177 <child> |
| 178 </object> |
178 <object class="AdwEntryRow" id="proxy_host"> |
| 179 </child> |
179 <property name="focusable">0</property> |
| 180 <child> |
180 <property name="title" translatable="1">_Host</property> |
| 181 <object class="AdwPreferencesRow" id="proxy_options"> |
181 <property name="use-underline">1</property> |
| 182 <property name="focusable">0</property> |
182 </object> |
| 183 <property name="visible">0</property> |
183 </child> |
| 184 <child> |
184 <child> |
| 185 <object class="GtkListBox"> |
185 <object class="AdwEntryRow" id="proxy_port"> |
| 186 <property name="focusable">0</property> |
186 <property name="focusable">0</property> |
| 187 <child> |
187 <property name="title" translatable="1">P_ort</property> |
| 188 <object class="AdwEntryRow" id="proxy_host"> |
188 <property name="use-underline">1</property> |
| 189 <property name="focusable">0</property> |
189 <property name="input-purpose">number</property> |
| 190 <property name="title" translatable="1">_Host</property> |
190 </object> |
| 191 <property name="use-underline">1</property> |
191 </child> |
| 192 </object> |
192 <child> |
| 193 </child> |
193 <object class="AdwEntryRow" id="proxy_username"> |
| 194 <child> |
194 <property name="focusable">0</property> |
| 195 <object class="AdwEntryRow" id="proxy_port"> |
195 <property name="title" translatable="1">User_name</property> |
| 196 <property name="focusable">0</property> |
196 <property name="use-underline">1</property> |
| 197 <property name="title" translatable="1">P_ort</property> |
197 </object> |
| 198 <property name="use-underline">1</property> |
198 </child> |
| 199 <property name="input-purpose">number</property> |
199 <child> |
| 200 </object> |
200 <object class="AdwPasswordEntryRow" id="proxy_password"> |
| 201 </child> |
201 <property name="focusable">0</property> |
| 202 <child> |
202 <property name="title" translatable="1">Pa_ssword</property> |
| 203 <object class="AdwEntryRow" id="proxy_username"> |
203 <property name="use-underline">1</property> |
| 204 <property name="focusable">0</property> |
204 </object> |
| 205 <property name="title" translatable="1">User_name</property> |
205 </child> |
| 206 <property name="use-underline">1</property> |
206 </object> |
| 207 </object> |
207 </child> |
| 208 </child> |
208 </object> |
| 209 <child> |
209 </child> |
| 210 <object class="AdwPasswordEntryRow" id="proxy_password"> |
210 </object> |
| 211 <property name="focusable">0</property> |
211 </child> |
| 212 <property name="title" translatable="1">Pa_ssword</property> |
|
| 213 <property name="use-underline">1</property> |
|
| 214 </object> |
|
| 215 </child> |
|
| 216 </object> |
|
| 217 </child> |
|
| 218 </object> |
|
| 219 </child> |
|
| 220 </object> |
|
| 221 </child> |
|
| 222 </object> |
|
| 223 </child> |
|
| 224 </object> |
|
| 225 </child> |
|
| 226 <child type="action"> |
|
| 227 <object class="GtkButton" id="button1"> |
|
| 228 <property name="label" translatable="1">_Cancel</property> |
|
| 229 <property name="receives-default">1</property> |
|
| 230 <property name="use-underline">1</property> |
|
| 231 </object> |
|
| 232 </child> |
|
| 233 <child type="action"> |
|
| 234 <object class="GtkButton" id="button2"> |
|
| 235 <property name="css-classes">suggested-action</property> |
|
| 236 <property name="label" translatable="1">_Save</property> |
|
| 237 <property name="receives-default">1</property> |
|
| 238 <property name="sensitive">0</property> |
|
| 239 <property name="use-underline">1</property> |
|
| 240 </object> |
|
| 241 </child> |
|
| 242 <action-widgets> |
|
| 243 <action-widget response="cancel">button1</action-widget> |
|
| 244 <action-widget response="apply">button2</action-widget> |
|
| 245 </action-widgets> |
|
| 246 </template> |
212 </template> |
| 247 </interface> |
213 </interface> |