gnome-commander r1484 - in branches/gcmd-1-3: . src/tags
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1484 - in branches/gcmd-1-3: . src/tags
- Date: Tue, 8 Jan 2008 22:02:15 +0000 (GMT)
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]