vinagre r486 - in trunk: . src
- From: jwendell svn gnome org
- To: svn-commits-list gnome org
- Subject: vinagre r486 - in trunk: . src
- Date: Sat, 4 Oct 2008 14:36:43 +0000 (UTC)
Author: jwendell
Date: Sat Oct 4 14:36:43 2008
New Revision: 486
URL: http://svn.gnome.org/viewvc/vinagre?rev=486&view=rev
Log:
2008-10-04 Jonh Wendell <jwendell gnome org>
* src/vinagre-bookmarks.c (vinagre_bookmarks_init):
Create the parent directory before copying the old bookmarks file
to the new location. Closes #554995.
Modified:
trunk/ChangeLog
trunk/src/vinagre-bookmarks.c
Modified: trunk/src/vinagre-bookmarks.c
==============================================================================
--- trunk/src/vinagre-bookmarks.c (original)
+++ trunk/src/vinagre-bookmarks.c Sat Oct 4 14:36:43 2008
@@ -86,15 +86,19 @@
NULL);
if (g_file_test (old, G_FILE_TEST_EXISTS))
{
- GFile *src;
+ GFile *src, *parent;
GError *error = NULL;
g_message (_("Copying the bookmarks file to the new location. This operation is only supposed to run once."));
src = g_file_new_for_path (old);
+ parent = g_file_get_parent (gfile);
+ g_file_make_directory_with_parents (parent, NULL, NULL);
+ g_object_unref (parent);
+
if (!g_file_copy (src, gfile, G_FILE_COPY_NONE, NULL, NULL, NULL, &error))
{
- g_warning (_("Error: %s"), error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]