Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gtk/filechoosers.py
    ... ... @@ -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):