Don't spew warnings when destination is not a GLocalFile.
authorAlexander Larsson <alexl@redhat.com>
Tue, 5 Feb 2008 10:11:12 +0000 (10:11 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Tue, 5 Feb 2008 10:11:12 +0000 (10:11 +0000)
2008-02-05  Alexander Larsson  <alexl@redhat.com>

* glocalfile.c (g_local_file_move):
Don't spew warnings when destination is not
a GLocalFile.

svn path=/trunk/; revision=6451

gio/ChangeLog
gio/glocalfile.c

index f5a187f04625f35b430389d2003eac0d8a1fe193..34bd5243a13aa9785af1f8edc49540f681e2ed1d 100644 (file)
@@ -1,3 +1,9 @@
+2008-02-05  Alexander Larsson  <alexl@redhat.com>
+
+       * glocalfile.c (g_local_file_move):
+       Don't spew warnings when destination is not
+       a GLocalFile.
+
 2008-02-03  Hans Breuer  <hans@breuer.org>
 
        * makefile.msc : update
index aad6d841cbf83640588bd77e3ee0dddb6cfa2043..55ed4da83910886e6b43da0e0a4ddcc21b775e6f 100644 (file)
@@ -1781,8 +1781,7 @@ g_local_file_move (GFile                  *source,
                   gpointer                progress_callback_data,
                   GError                **error)
 {
-  GLocalFile *local_source;
-  GLocalFile *local_destination = G_LOCAL_FILE (destination);
+  GLocalFile *local_source, *local_destination;
   struct stat statbuf;
   gboolean destination_exist, source_is_dir;
   char *backup_name;
@@ -1798,6 +1797,7 @@ g_local_file_move (GFile                  *source,
     }
   
   local_source = G_LOCAL_FILE (source);
+  local_destination = G_LOCAL_FILE (destination);
   
   res = g_lstat (local_source->filename, &statbuf);
   if (res == -1)