1
/* Nautilus Actions new config tool
2
4
* Copyright (C) 2005 The GNOME Foundation
5
* Frederic Ruaudel (grumz@grumz.net)
5
* Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
6
* Copyright (C) 2009 Pierre Wieser and others (see AUTHORS)
7
8
* This Program is free software; you can redistribute it and/or
8
9
* modify it under the terms of the GNU General Public License as
9
* published by the Free Software Foundation; either version 2 of the
10
* License, or (at your option) any later version.
10
* published by the Free Software Foundation; either version 2 of
11
* the License, or (at your option) any later version.
12
13
* This Program is distributed in the hope that it will be useful,
13
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
18
* You should have received a copy of the GNU General Public
18
19
* License along with this Library; see the file COPYING. If not,
19
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
20
* write to the Free Software Foundation, Inc., 59 Temple Place,
21
* Suite 330, Boston, MA 02111-1307, USA.
24
* Frederic Ruaudel <grumz@grumz.net>
25
* Rodrigo Moya <rodrigo@gnome-db.org>
26
* Pierre Wieser <pwieser@trychlos.org>
27
* ... and many others (see AUTHORS)
23
30
#include <config.h>
119
126
nautilus_actions_config_action_profile_set_basenames (action_profile, basenames);
120
127
g_slist_foreach (basenames, (GFunc) g_free, NULL);
121
128
g_slist_free (basenames);
123
130
nautilus_actions_config_action_profile_set_match_case (action_profile, match_case);
156
163
path = nautilus_actions_config_schema_writer_get_saved_filename (schema_configs, action->uuid);
159
// Copy the content of the temporary file into the one asked by the user
166
/* Copy the content of the temporary file into the one asked by the user */
160
167
if ((success = g_file_get_contents (path, &contents, &length, &error)))
162
169
success = nautilus_actions_file_set_contents (output_file, contents, length, &error);
163
170
g_free (contents);
166
//--> Remove the temporary file
173
/* --> Remove the temporary file */
171
178
printf (_(" Failed: Can't create %s: %s\n"), output_file, error->message);