gnome-commander r1484 - in branches/gcmd-1-3: . src/tags



Author: epiotr
Date: Tue Jan  8 22:02:15 2008
New Revision: 1484
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1484&view=rev

Log:
Set File.Path tag properly

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/tags/gnome-cmd-tags-file.cc

Modified: branches/gcmd-1-3/src/tags/gnome-cmd-tags-file.cc
==============================================================================
--- branches/gcmd-1-3/src/tags/gnome-cmd-tags-file.cc	(original)
+++ branches/gcmd-1-3/src/tags/gnome-cmd-tags-file.cc	Tue Jan  8 22:02:15 2008
@@ -53,14 +53,14 @@
 
     // if (!gnome_cmd_file_is_local(finfo))  return;
 
-    const gchar *fname = gnome_cmd_file_get_real_path(finfo);
+    gchar *dpath = gnome_cmd_file_get_dirname(finfo);
 
     static char buff[32];
 
-    // DEBUG('t', "Loading file metadata for '%s'\n", fname);
-
     finfo->metadata->add(TAG_FILE_NAME, finfo->info->name);
-    finfo->metadata->add(TAG_FILE_PATH, fname);              // g_utf8_strrchr (fname, -1, G_DIR_SEPARATOR);
+    finfo->metadata->add(TAG_FILE_PATH, dpath);
+
+    g_free(dpath);
 
     gchar *uri_str = gnome_cmd_file_get_uri_str (finfo);
     finfo->metadata->add(TAG_FILE_LINK, uri_str);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]