From 715835088c4183f700d3d56386bfc40ab7cacc54 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 18 Jul 2007 16:33:53 +0000 Subject: [PATCH] make all-inkscape-files the default filter instead of all-images (do we need that at all? MIME has some pretty strange notions of what is an image and what not) --- src/ui/dialog/filedialog.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/ui/dialog/filedialog.cpp b/src/ui/dialog/filedialog.cpp index 2a5ededbb..08c0d4116 100644 --- a/src/ui/dialog/filedialog.cpp +++ b/src/ui/dialog/filedialog.cpp @@ -894,11 +894,10 @@ private: void FileOpenDialogImpl::createFilterMenu() { - //patterns added dynamically below - Gtk::FileFilter allImageFilter; - allImageFilter.set_name(_("All Images")); - extensionMap[Glib::ustring(_("All Images"))]=NULL; - add_filter(allImageFilter); + Gtk::FileFilter allInkscapeFilter; + allInkscapeFilter.set_name(_("All Inkscape Files")); + extensionMap[Glib::ustring(_("All Inkscape Files"))]=NULL; + add_filter(allInkscapeFilter); Gtk::FileFilter allFilter; allFilter.set_name(_("All Files")); @@ -906,12 +905,12 @@ void FileOpenDialogImpl::createFilterMenu() allFilter.add_pattern("*"); add_filter(allFilter); - //patterns added dynamically below - Gtk::FileFilter allInkscapeFilter; - allInkscapeFilter.set_name(_("All Inkscape Files")); - extensionMap[Glib::ustring(_("All Inkscape Files"))]=NULL; - add_filter(allInkscapeFilter); + Gtk::FileFilter allImageFilter; + allImageFilter.set_name(_("All Images")); + extensionMap[Glib::ustring(_("All Images"))]=NULL; + add_filter(allImageFilter); + //patterns added dynamically below Inkscape::Extension::DB::InputList extension_list; Inkscape::Extension::db.get_input_list(extension_list); -- 2.30.2