diff --git a/plugins/xmlsave/src/xml_serializer.cc b/plugins/xmlsave/src/xml_serializer.cc index 651c940..3f5b1b9 100644 --- a/plugins/xmlsave/src/xml_serializer.cc +++ b/plugins/xmlsave/src/xml_serializer.cc @@ -112,7 +112,7 @@ void XMLSerializer::restore_snapshot(const Glib::ustring& filename, History& his const Glib::ustring XMLSerializer::get_filename_extension() { - return Glib::ustring("xsgp"); + return Glib::ustring("xgp"); } diff --git a/src/gui_builder.cc b/src/gui_builder.cc index dee243c..a52c6dd 100644 --- a/src/gui_builder.cc +++ b/src/gui_builder.cc @@ -101,7 +101,7 @@ GuiBuilder::on_file_open_activate() Serializer* ser = *iter; Gtk::FileFilter filter_sgpem; filter_sgpem.set_name(ser->get_filename_description()); - filter_sgpem.add_pattern(ser->get_filename_extension()); + filter_sgpem.add_pattern(Glib::ustring("*.") + ser->get_filename_extension()); dialog.add_filter(filter_sgpem); } @@ -166,8 +166,8 @@ GuiBuilder::on_file_saveas_activate() //Add filters, so that only certain file types can be selected: Gtk::FileFilter filter_sgpem; - filter_sgpem.set_name("Sgpem files"); - filter_sgpem.add_pattern("*.xgp"); + filter_sgpem.set_name(serializer.get_filename_description()); + filter_sgpem.add_pattern(Glib::ustring("*.") + serializer.get_filename_extension()); dialog.add_filter(filter_sgpem); Gtk::FileFilter filter_any;