gnome-commander r1914 - in branches/gcmd-1-3: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1914 - in branches/gcmd-1-3: . src
- Date: Mon, 28 Jul 2008 20:51:37 +0000 (UTC)
Author: epiotr
Date: Mon Jul 28 20:51:36 2008
New Revision: 1914
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1914&view=rev
Log:
Invalidate metadata for modified files
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
branches/gcmd-1-3/src/gnome-cmd-file.cc
branches/gcmd-1-3/src/gnome-cmd-file.h
Modified: branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.cc Mon Jul 28 20:51:36 2008
@@ -860,6 +860,7 @@
if (file_is_in_list (fs, finfo))
{
+ gnome_cmd_file_invalidate_metadata (finfo);
gnome_cmd_file_list_update_file (GNOME_CMD_FILE_LIST (fs->list), finfo);
update_selected_files_label (fs);
}
@@ -874,6 +875,7 @@
if (file_is_in_list (fs, finfo))
{
+ // gnome_cmd_file_invalidate_metadata (finfo, TAG_FILE);
gnome_cmd_file_list_update_file (GNOME_CMD_FILE_LIST (fs->list), finfo);
GnomeCmdFileListColumnID sort_col = gnome_cmd_file_list_get_sort_column (GNOME_CMD_FILE_LIST (fs->list));
Modified: branches/gcmd-1-3/src/gnome-cmd-file.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file.cc Mon Jul 28 20:51:36 2008
@@ -172,6 +172,15 @@
}
+void gnome_cmd_file_invalidate_metadata (GnomeCmdFile *finfo)
+{
+ g_return_if_fail (finfo != NULL);
+
+ delete finfo->metadata;
+ finfo->metadata = NULL;
+}
+
+
void gnome_cmd_file_setup (GnomeCmdFile *finfo, GnomeVFSFileInfo *info, GnomeCmdDir *dir)
{
g_return_if_fail (finfo != NULL);
Modified: branches/gcmd-1-3/src/gnome-cmd-file.h
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file.h (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file.h Mon Jul 28 20:51:36 2008
@@ -58,6 +58,8 @@
GnomeCmdFile *gnome_cmd_file_new (GnomeVFSFileInfo *info, GnomeCmdDir *dir);
void gnome_cmd_file_setup (GnomeCmdFile *finfo, GnomeVFSFileInfo *info, GnomeCmdDir *dir);
+void gnome_cmd_file_invalidate_metadata (GnomeCmdFile *finfo);
+
void gnome_cmd_file_ref (GnomeCmdFile *finfo);
void gnome_cmd_file_unref (GnomeCmdFile *finfo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]