Lines Matching refs:filename

59 static void try_shortcuts_file(char const *filename);
60 static void read_shortcuts_file(char const *filename, bool const is_user_set=false);
102 static void try_shortcuts_file(char const *filename) {
106 if (file_test(filename, G_FILE_TEST_EXISTS)) {
107 read_shortcuts_file(filename, true);
163 char const *filename = get_path(USER, KEYS, "default.xml");
165 XML::Document *doc=sp_repr_read_file(filename, NULL);
167 g_warning("Unable to read keys file %s", filename);
189 sp_repr_save_file(doc, filename, NULL);
194 Inkscape::XML::Document *sp_shortcut_create_template_file(char const *filename) {
202 sp_repr_save_file(doc, filename, NULL);
204 return sp_repr_read_file(filename, NULL);
229 gchar *filename = 0;
230 while ((filename = (gchar *) g_dir_read_name(directory)) != NULL) {
231 gchar* lower = g_ascii_strdown(filename, -1);
243 gchar* full = g_build_filename(dirname, filename, NULL);
260 Glib::ustring label(filename);
262 label = Glib::ustring(name)+ " (" + filename + ")";
265 if (!strcmp(filename, "default.xml")) {
330 Glib::ustring filename;
337 _("Select a filename for exporting"),
397 char const *filename = get_path(USER, KEYS, "default.xml");
398 sp_repr_save_file(doc, filename, NULL);
407 char const *filename = get_path(USER, KEYS, "default.xml");
409 XML::Document *doc=sp_repr_read_file(filename, NULL);
411 g_warning("Unable to read keyboard shortcut file %s", filename);
431 char const *filename = get_path(USER, KEYS, "default.xml");
433 XML::Document *doc=sp_repr_read_file(filename, NULL);
435 g_warning("Unable to read keyboard shortcut file %s", filename);
491 sp_repr_save_file(doc, filename, NULL);
499 char const *filename = get_path(USER, KEYS, "default.xml");
501 XML::Document *doc=sp_repr_read_file(filename, NULL);
503 g_warning("Unable to read keyboard shortcut file %s, creating ....", filename);
504 doc = sp_shortcut_create_template_file(filename);
506 g_warning("Unable to create keyboard shortcut file %s", filename);
546 sp_repr_save_file(doc, filename, NULL);
551 static void read_shortcuts_file(char const *filename, bool const is_user_set) {
552 XML::Document *doc=sp_repr_read_file(filename, NULL);
554 g_warning("Unable to read keys file %s", filename);