Codebase list lightdm-gtk-greeter-settings / 9dbded8
Updating ui files Andrew P. 9 years ago
7 changed file(s) with 49 addition(s) and 72 deletion(s). Raw diff Collapse all Expand all
1919 <property name="label" translatable="yes" context="option|greeter|default-user-image">Path</property>
2020 </object>
2121 </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>
2722 </object>
2823 <object class="GtkListStore" id="greeter_indicators_model">
2924 <columns>
423418 <property name="visible">True</property>
424419 <property name="can_focus">False</property>
425420 <property name="halign">start</property>
426 <property name="filter">greeter_default-user-image_path_dialog_filter</property>
427421 </object>
428422 <packing>
429423 <property name="left_attach">1</property>
00 <?xml version="1.0" encoding="UTF-8"?>
1 <!-- Generated with glade 3.18.3 -->
12 <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"/>
45 <object class="GtkListStore" id="contexts_model">
56 <columns>
67 <!-- column-name value -->
2728 <object class="GtkTreeModelFilter" id="icons_filter">
2829 <property name="child_model">icons_model</property>
2930 </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>
3040 <object class="GtkImage" id="image2">
3141 <property name="visible">True</property>
3242 <property name="can_focus">False</property>
3848 <property name="can_focus">False</property>
3949 <property name="xpad">2</property>
4050 <property name="icon_name">dialog-ok</property>
41 </object>
42 <object class="GtkTreeModelSort" id="icons_sorted">
43 <property name="model">icons_filter</property>
4451 </object>
4552 <object class="IconChooserDialog" id="icon_chooser_dialog">
4653 <property name="width_request">400</property>
151158 <property name="visible">True</property>
152159 <property name="can_focus">True</property>
153160 <property name="invisible_char">●</property>
154 <property name="invisible_char_set">True</property>
155161 <property name="completion">name_completion</property>
156162 <signal name="changed" handler="on_name_changed" swapped="no"/>
157163 </object>
166172 <property name="left_attach">0</property>
167173 <property name="top_attach">0</property>
168174 <property name="width">2</property>
169 <property name="height">1</property>
170175 </packing>
171176 </child>
172177 <child>
180185 <packing>
181186 <property name="left_attach">0</property>
182187 <property name="top_attach">1</property>
183 <property name="width">1</property>
184 <property name="height">1</property>
185188 </packing>
186189 </child>
187190 <child>
195198 <packing>
196199 <property name="left_attach">1</property>
197200 <property name="top_attach">1</property>
198 <property name="width">1</property>
199 <property name="height">1</property>
200201 </packing>
201202 </child>
202203 <child>
207208 <property name="valign">start</property>
208209 <property name="stock">gtk-missing-image</property>
209210 <property name="pixel_size">32</property>
210 <property name="icon-size">6</property>
211 <property name="icon_size">6</property>
211212 </object>
212213 <packing>
213214 <property name="left_attach">2</property>
214215 <property name="top_attach">0</property>
215 <property name="width">1</property>
216216 <property name="height">2</property>
217217 </packing>
218218 </child>
232232 <property name="left_attach">0</property>
233233 <property name="top_attach">3</property>
234234 <property name="width">3</property>
235 <property name="height">1</property>
236235 </packing>
237236 </child>
238237 <child>
288287 <property name="left_attach">1</property>
289288 <property name="top_attach">2</property>
290289 <property name="width">2</property>
291 <property name="height">1</property>
292290 </packing>
293291 </child>
294292 <child>
327325 <packing>
328326 <property name="left_attach">0</property>
329327 <property name="top_attach">2</property>
330 <property name="width">1</property>
331 <property name="height">1</property>
332328 </packing>
333329 </child>
334330 </object>
345341 <action-widget response="-5">ok_button</action-widget>
346342 </action-widgets>
347343 </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>
354344 </interface>
00 <?xml version="1.0" encoding="UTF-8"?>
11 <!-- Generated with glade 3.18.3 -->
22 <interface>
3 <requires lib="gtk+" version="3.12"/>
3 <requires lib="gtk+" version="3.8"/>
44 <object class="GtkImage" id="cancel_image">
55 <property name="visible">True</property>
66 <property name="can_focus">False</property>
00 <?xml version="1.0" encoding="UTF-8"?>
1 <!-- Generated with glade 3.18.3 -->
12 <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"/>
45 <object class="GtkImage" id="image1">
56 <property name="visible">True</property>
67 <property name="can_focus">False</property>
1819 <property name="can_focus">False</property>
1920 <property name="xpad">2</property>
2021 <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>
2133 </object>
2234 <object class="IndicatorChooserDialog" id="indicator_chooser_dialog">
2335 <property name="width_request">400</property>
162174 <object class="GtkEntry" id="short_value">
163175 <property name="can_focus">True</property>
164176 <property name="is_focus">True</property>
177 <signal name="activate" handler="on_short_value_activate" swapped="no"/>
165178 <signal name="changed" handler="on_short_value_changed" swapped="no"/>
166 <signal name="activate" handler="on_short_value_activate" swapped="no"/>
167179 </object>
168180 </child>
169181 </object>
279291 <packing>
280292 <property name="left_attach">1</property>
281293 <property name="top_attach">0</property>
282 <property name="width">1</property>
283 <property name="height">1</property>
284294 </packing>
285295 </child>
286296 <child>
307317 <packing>
308318 <property name="left_attach">0</property>
309319 <property name="top_attach">0</property>
310 <property name="width">1</property>
311 <property name="height">1</property>
312320 </packing>
313321 </child>
314322 <child>
335343 <packing>
336344 <property name="left_attach">0</property>
337345 <property name="top_attach">1</property>
338 <property name="width">1</property>
339 <property name="height">1</property>
340346 </packing>
341347 </child>
342348 <child>
352358 <packing>
353359 <property name="left_attach">1</property>
354360 <property name="top_attach">1</property>
355 <property name="width">1</property>
356 <property name="height">1</property>
357361 </packing>
358362 </child>
359363 </object>
369373 <property name="app_paintable">True</property>
370374 <property name="can_focus">False</property>
371375 <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>
372392 <child internal-child="content_area">
373393 <object class="GtkBox" id="infobar-content_area1">
374394 <property name="can_focus">False</property>
391411 <property name="expand">True</property>
392412 <property name="fill">True</property>
393413 <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>
410414 </packing>
411415 </child>
412416 </object>
441445 <action-widget response="-5">ok_button</action-widget>
442446 </action-widgets>
443447 </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>
455448 </interface>
00 <?xml version="1.0" encoding="UTF-8"?>
11 <!-- Generated with glade 3.18.3 -->
22 <interface>
3 <requires lib="gtk+" version="3.6"/>
3 <requires lib="gtk+" version="3.8"/>
44 <requires lib="gtk_greeter_settings" version="1.0"/>
55 <object class="GtkListStore" id="background_model">
66 <columns>
142142 def run(self):
143143 return super().run()
144144
145 def get_iconname(self):
145 def get_icon_name(self):
146146 return self._name.props.text
147147
148148 def select_icon(self, name):
183183 self._preview.props.icon_name = name
184184
185185
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
187187
188188 STANDARD_CONTEXTS =\
189189 (
409409 if self._value.startswith('#'):
410410 self._icon_dialog.select_icon(self._value[1:])
411411 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())
413413 self._icon_dialog.hide()
414414
415415 def _on_select_path(self, item):