Commit 86fa8e9
Filter file dialogs based on file extension
Changed files (3)
modifiedlibbirdfont/BackgroundTools.valamodifiedlibbirdfont/ExportTool.valamodifiedlibbirdfont/SvgParser.vala
Diff
@@ -184,6 +184,14 @@ public class BackgroundTools : ToolCollection { } }); + fc.add_extension ("png");+ fc.add_extension ("jpeg");+ fc.add_extension ("jpg");+ fc.add_extension ("gif");+ fc.add_extension ("tiff");+ fc.add_extension ("bmp");+ fc.add_extension ("svg");+ MainWindow.file_chooser (t_("Open"), fc, FileChooser.LOAD); } @@ -190,6 +190,7 @@ public class ExportTool : GLib.Object { } }); + fc.add_extension ("svg"); MainWindow.file_chooser (t_("Save"), fc, FileChooser.SAVE); } @@ -47,6 +47,7 @@ public class SvgParser { import_svg (path); }); + fc.add_extension ("svg"); MainWindow.file_chooser (t_("Import"), fc, FileChooser.LOAD); }