Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
-
e39dba6b
by wurstsalat at 2023-01-13T13:48:30+01:00
1 changed file:
Changes:
| ... | ... | @@ -112,7 +112,13 @@ class BaseAvatarChooserDialog: |
| 112 | 112 | |
| 113 | 113 | _title = _('Choose Avatar…')
|
| 114 | 114 | _preview_size = (100, 100)
|
| 115 | - _filters = [Filter(_('Images'), ['image/*'], True)]
|
|
| 115 | + |
|
| 116 | + if _require_native():
|
|
| 117 | + _filters = [Filter(_('PNG files'), '*.png', True),
|
|
| 118 | + Filter(_('JPEG files'), '*.jp*g', False),
|
|
| 119 | + Filter(_('SVG files'), '*.svg', False)]
|
|
| 120 | + else:
|
|
| 121 | + _filters = [Filter(_('Images'), ['image/*'], True)]
|
|
| 116 | 122 | |
| 117 | 123 | |
| 118 | 124 | class NativeFileChooserDialog(Gtk.FileChooserNative, BaseFileChooser):
|