Updating ui files
Andrew P.
9 years ago
19 | 19 | <property name="label" translatable="yes" context="option|greeter|default-user-image">Path</property> |
20 | 20 | </object> |
21 | 21 | </child> |
22 | </object> | |
23 | <object class="GtkFileFilter" id="greeter_default-user-image_path_dialog_filter"> | |
24 | <mime-types> | |
25 | <mime-type>image/*</mime-type> | |
26 | </mime-types> | |
27 | 22 | </object> |
28 | 23 | <object class="GtkListStore" id="greeter_indicators_model"> |
29 | 24 | <columns> |
423 | 418 | <property name="visible">True</property> |
424 | 419 | <property name="can_focus">False</property> |
425 | 420 | <property name="halign">start</property> |
426 | <property name="filter">greeter_default-user-image_path_dialog_filter</property> | |
427 | 421 | </object> |
428 | 422 | <packing> |
429 | 423 | <property name="left_attach">1</property> |
0 | 0 | <?xml version="1.0" encoding="UTF-8"?> |
1 | <!-- Generated with glade 3.18.3 --> | |
1 | 2 | <interface> |
2 | <!-- interface-requires gtk+ 3.0 --> | |
3 | <!-- interface-requires gtk_greeter_settings 1.0 --> | |
3 | <requires lib="gtk+" version="3.8"/> | |
4 | <requires lib="gtk_greeter_settings" version="1.0"/> | |
4 | 5 | <object class="GtkListStore" id="contexts_model"> |
5 | 6 | <columns> |
6 | 7 | <!-- column-name value --> |
27 | 28 | <object class="GtkTreeModelFilter" id="icons_filter"> |
28 | 29 | <property name="child_model">icons_model</property> |
29 | 30 | </object> |
31 | <object class="GtkTreeModelSort" id="icons_sorted"> | |
32 | <property name="model">icons_filter</property> | |
33 | </object> | |
34 | <object class="GtkEntryCompletion" id="name_completion"> | |
35 | <property name="model">icons_model</property> | |
36 | <property name="text_column">0</property> | |
37 | <property name="inline_completion">True</property> | |
38 | <property name="popup_completion">False</property> | |
39 | </object> | |
30 | 40 | <object class="GtkImage" id="image2"> |
31 | 41 | <property name="visible">True</property> |
32 | 42 | <property name="can_focus">False</property> |
38 | 48 | <property name="can_focus">False</property> |
39 | 49 | <property name="xpad">2</property> |
40 | 50 | <property name="icon_name">dialog-ok</property> |
41 | </object> | |
42 | <object class="GtkTreeModelSort" id="icons_sorted"> | |
43 | <property name="model">icons_filter</property> | |
44 | 51 | </object> |
45 | 52 | <object class="IconChooserDialog" id="icon_chooser_dialog"> |
46 | 53 | <property name="width_request">400</property> |
151 | 158 | <property name="visible">True</property> |
152 | 159 | <property name="can_focus">True</property> |
153 | 160 | <property name="invisible_char">●</property> |
154 | <property name="invisible_char_set">True</property> | |
155 | 161 | <property name="completion">name_completion</property> |
156 | 162 | <signal name="changed" handler="on_name_changed" swapped="no"/> |
157 | 163 | </object> |
166 | 172 | <property name="left_attach">0</property> |
167 | 173 | <property name="top_attach">0</property> |
168 | 174 | <property name="width">2</property> |
169 | <property name="height">1</property> | |
170 | 175 | </packing> |
171 | 176 | </child> |
172 | 177 | <child> |
180 | 185 | <packing> |
181 | 186 | <property name="left_attach">0</property> |
182 | 187 | <property name="top_attach">1</property> |
183 | <property name="width">1</property> | |
184 | <property name="height">1</property> | |
185 | 188 | </packing> |
186 | 189 | </child> |
187 | 190 | <child> |
195 | 198 | <packing> |
196 | 199 | <property name="left_attach">1</property> |
197 | 200 | <property name="top_attach">1</property> |
198 | <property name="width">1</property> | |
199 | <property name="height">1</property> | |
200 | 201 | </packing> |
201 | 202 | </child> |
202 | 203 | <child> |
207 | 208 | <property name="valign">start</property> |
208 | 209 | <property name="stock">gtk-missing-image</property> |
209 | 210 | <property name="pixel_size">32</property> |
210 | <property name="icon-size">6</property> | |
211 | <property name="icon_size">6</property> | |
211 | 212 | </object> |
212 | 213 | <packing> |
213 | 214 | <property name="left_attach">2</property> |
214 | 215 | <property name="top_attach">0</property> |
215 | <property name="width">1</property> | |
216 | 216 | <property name="height">2</property> |
217 | 217 | </packing> |
218 | 218 | </child> |
232 | 232 | <property name="left_attach">0</property> |
233 | 233 | <property name="top_attach">3</property> |
234 | 234 | <property name="width">3</property> |
235 | <property name="height">1</property> | |
236 | 235 | </packing> |
237 | 236 | </child> |
238 | 237 | <child> |
288 | 287 | <property name="left_attach">1</property> |
289 | 288 | <property name="top_attach">2</property> |
290 | 289 | <property name="width">2</property> |
291 | <property name="height">1</property> | |
292 | 290 | </packing> |
293 | 291 | </child> |
294 | 292 | <child> |
327 | 325 | <packing> |
328 | 326 | <property name="left_attach">0</property> |
329 | 327 | <property name="top_attach">2</property> |
330 | <property name="width">1</property> | |
331 | <property name="height">1</property> | |
332 | 328 | </packing> |
333 | 329 | </child> |
334 | 330 | </object> |
345 | 341 | <action-widget response="-5">ok_button</action-widget> |
346 | 342 | </action-widgets> |
347 | 343 | </object> |
348 | <object class="GtkEntryCompletion" id="name_completion"> | |
349 | <property name="model">icons_model</property> | |
350 | <property name="text_column">0</property> | |
351 | <property name="inline_completion">True</property> | |
352 | <property name="popup_completion">False</property> | |
353 | </object> | |
354 | 344 | </interface> |
0 | 0 | <?xml version="1.0" encoding="UTF-8"?> |
1 | 1 | <!-- Generated with glade 3.18.3 --> |
2 | 2 | <interface> |
3 | <requires lib="gtk+" version="3.12"/> | |
3 | <requires lib="gtk+" version="3.8"/> | |
4 | 4 | <object class="GtkImage" id="cancel_image"> |
5 | 5 | <property name="visible">True</property> |
6 | 6 | <property name="can_focus">False</property> |
0 | 0 | <?xml version="1.0" encoding="UTF-8"?> |
1 | <!-- Generated with glade 3.18.3 --> | |
1 | 2 | <interface> |
2 | <!-- interface-requires gtk+ 3.0 --> | |
3 | <!-- interface-requires gtk_greeter_settings 1.0 --> | |
3 | <requires lib="gtk+" version="3.8"/> | |
4 | <requires lib="gtk_greeter_settings" version="1.0"/> | |
4 | 5 | <object class="GtkImage" id="image1"> |
5 | 6 | <property name="visible">True</property> |
6 | 7 | <property name="can_focus">False</property> |
18 | 19 | <property name="can_focus">False</property> |
19 | 20 | <property name="xpad">2</property> |
20 | 21 | <property name="icon_name">dialog-ok</property> |
22 | </object> | |
23 | <object class="GtkFileFilter" id="library_file_filter"> | |
24 | <mime-types> | |
25 | <mime-type>application/x-sharedlib</mime-type> | |
26 | </mime-types> | |
27 | </object> | |
28 | <object class="GtkListStore" id="short_model"> | |
29 | <columns> | |
30 | <!-- column-name name --> | |
31 | <column type="gchararray"/> | |
32 | </columns> | |
21 | 33 | </object> |
22 | 34 | <object class="IndicatorChooserDialog" id="indicator_chooser_dialog"> |
23 | 35 | <property name="width_request">400</property> |
162 | 174 | <object class="GtkEntry" id="short_value"> |
163 | 175 | <property name="can_focus">True</property> |
164 | 176 | <property name="is_focus">True</property> |
177 | <signal name="activate" handler="on_short_value_activate" swapped="no"/> | |
165 | 178 | <signal name="changed" handler="on_short_value_changed" swapped="no"/> |
166 | <signal name="activate" handler="on_short_value_activate" swapped="no"/> | |
167 | 179 | </object> |
168 | 180 | </child> |
169 | 181 | </object> |
279 | 291 | <packing> |
280 | 292 | <property name="left_attach">1</property> |
281 | 293 | <property name="top_attach">0</property> |
282 | <property name="width">1</property> | |
283 | <property name="height">1</property> | |
284 | 294 | </packing> |
285 | 295 | </child> |
286 | 296 | <child> |
307 | 317 | <packing> |
308 | 318 | <property name="left_attach">0</property> |
309 | 319 | <property name="top_attach">0</property> |
310 | <property name="width">1</property> | |
311 | <property name="height">1</property> | |
312 | 320 | </packing> |
313 | 321 | </child> |
314 | 322 | <child> |
335 | 343 | <packing> |
336 | 344 | <property name="left_attach">0</property> |
337 | 345 | <property name="top_attach">1</property> |
338 | <property name="width">1</property> | |
339 | <property name="height">1</property> | |
340 | 346 | </packing> |
341 | 347 | </child> |
342 | 348 | <child> |
352 | 358 | <packing> |
353 | 359 | <property name="left_attach">1</property> |
354 | 360 | <property name="top_attach">1</property> |
355 | <property name="width">1</property> | |
356 | <property name="height">1</property> | |
357 | 361 | </packing> |
358 | 362 | </child> |
359 | 363 | </object> |
369 | 373 | <property name="app_paintable">True</property> |
370 | 374 | <property name="can_focus">False</property> |
371 | 375 | <property name="message_type">warning</property> |
376 | <child internal-child="action_area"> | |
377 | <object class="GtkButtonBox" id="infobar-action_area1"> | |
378 | <property name="can_focus">False</property> | |
379 | <property name="border_width">5</property> | |
380 | <property name="orientation">vertical</property> | |
381 | <property name="layout_style">start</property> | |
382 | <child> | |
383 | <placeholder/> | |
384 | </child> | |
385 | </object> | |
386 | <packing> | |
387 | <property name="expand">False</property> | |
388 | <property name="fill">True</property> | |
389 | <property name="position">1</property> | |
390 | </packing> | |
391 | </child> | |
372 | 392 | <child internal-child="content_area"> |
373 | 393 | <object class="GtkBox" id="infobar-content_area1"> |
374 | 394 | <property name="can_focus">False</property> |
391 | 411 | <property name="expand">True</property> |
392 | 412 | <property name="fill">True</property> |
393 | 413 | <property name="position">0</property> |
394 | </packing> | |
395 | </child> | |
396 | <child internal-child="action_area"> | |
397 | <object class="GtkButtonBox" id="infobar-action_area1"> | |
398 | <property name="can_focus">False</property> | |
399 | <property name="border_width">5</property> | |
400 | <property name="orientation">vertical</property> | |
401 | <property name="layout_style">start</property> | |
402 | <child> | |
403 | <placeholder/> | |
404 | </child> | |
405 | </object> | |
406 | <packing> | |
407 | <property name="expand">False</property> | |
408 | <property name="fill">True</property> | |
409 | <property name="position">1</property> | |
410 | 414 | </packing> |
411 | 415 | </child> |
412 | 416 | </object> |
441 | 445 | <action-widget response="-5">ok_button</action-widget> |
442 | 446 | </action-widgets> |
443 | 447 | </object> |
444 | <object class="GtkFileFilter" id="library_file_filter"> | |
445 | <mime-types> | |
446 | <mime-type>application/x-sharedlib</mime-type> | |
447 | </mime-types> | |
448 | </object> | |
449 | <object class="GtkListStore" id="short_model"> | |
450 | <columns> | |
451 | <!-- column-name name --> | |
452 | <column type="gchararray"/> | |
453 | </columns> | |
454 | </object> | |
455 | 448 | </interface> |
0 | 0 | <?xml version="1.0" encoding="UTF-8"?> |
1 | 1 | <!-- Generated with glade 3.18.3 --> |
2 | 2 | <interface> |
3 | <requires lib="gtk+" version="3.6"/> | |
3 | <requires lib="gtk+" version="3.8"/> | |
4 | 4 | <requires lib="gtk_greeter_settings" version="1.0"/> |
5 | 5 | <object class="GtkListStore" id="background_model"> |
6 | 6 | <columns> |
142 | 142 | def run(self): |
143 | 143 | return super().run() |
144 | 144 | |
145 | def get_iconname(self): | |
145 | def get_icon_name(self): | |
146 | 146 | return self._name.props.text |
147 | 147 | |
148 | 148 | def select_icon(self, name): |
183 | 183 | self._preview.props.icon_name = name |
184 | 184 | |
185 | 185 | |
186 | #http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html | |
186 | # http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html | |
187 | 187 | |
188 | 188 | STANDARD_CONTEXTS =\ |
189 | 189 | ( |
409 | 409 | if self._value.startswith('#'): |
410 | 410 | self._icon_dialog.select_icon(self._value[1:]) |
411 | 411 | if self._icon_dialog.run() == Gtk.ResponseType.OK: |
412 | self._set_icon(self._icon_dialog.get_iconname()) | |
412 | self._set_icon(self._icon_dialog.get_icon_name()) | |
413 | 413 | self._icon_dialog.hide() |
414 | 414 | |
415 | 415 | def _on_select_path(self, item): |