gnome-commander r1591 - in branches/gcmd-1-3: . doc/C src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1591 - in branches/gcmd-1-3: . doc/C src
- Date: Tue, 26 Feb 2008 15:08:16 +0000 (GMT)
Author: epiotr
Date: Tue Feb 26 15:08:16 2008
New Revision: 1591
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1591&view=rev
Log:
Fixed problem #449137 (renamed directories not accessed by name)
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/doc/C/gnome-commander.xml
branches/gcmd-1-3/src/gnome-cmd-con.cc
branches/gcmd-1-3/src/gnome-cmd-con.h
branches/gcmd-1-3/src/gnome-cmd-dir.cc
Modified: branches/gcmd-1-3/doc/C/gnome-commander.xml
==============================================================================
--- branches/gcmd-1-3/doc/C/gnome-commander.xml (original)
+++ branches/gcmd-1-3/doc/C/gnome-commander.xml Tue Feb 26 15:08:16 2008
@@ -5650,6 +5650,9 @@
<para>Fixed problem #448942 (SHIFT+ENTER: running a command in a separate terminal)</para>
</listitem>
<listitem>
+ <para>Fixed problem #449137 (renamed directories not accessed by name)</para>
+ </listitem>
+ <listitem>
<para>Fixed problem #468685 (crash in python module)</para>
</listitem>
<listitem>
Modified: branches/gcmd-1-3/src/gnome-cmd-con.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-con.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-con.cc Tue Feb 26 15:08:16 2008
@@ -534,6 +534,16 @@
}
+void gnome_cmd_con_remove_from_cache (GnomeCmdCon *con, const gchar *uri_str)
+{
+ g_return_if_fail (GNOME_CMD_IS_CON (con));
+ g_return_if_fail (uri_str != NULL);
+
+ DEBUG ('k', "REMOVING %s from the cache\n", uri_str);
+ g_hash_table_remove (con->priv->all_dirs_map, uri_str);
+}
+
+
GnomeCmdDir *gnome_cmd_con_cache_lookup (GnomeCmdCon *con, const gchar *uri_str)
{
g_return_val_if_fail (GNOME_CMD_IS_CON (con), NULL);
Modified: branches/gcmd-1-3/src/gnome-cmd-con.h
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-con.h (original)
+++ branches/gcmd-1-3/src/gnome-cmd-con.h Tue Feb 26 15:08:16 2008
@@ -310,6 +310,8 @@
void gnome_cmd_con_remove_from_cache (GnomeCmdCon *con, GnomeCmdDir *dir);
+void gnome_cmd_con_remove_from_cache (GnomeCmdCon *con, const gchar *uri);
+
GnomeCmdDir *gnome_cmd_con_cache_lookup (GnomeCmdCon *con, const gchar *uri);
const gchar *gnome_cmd_con_get_icon_name (ConnectionMethodID method);
Modified: branches/gcmd-1-3/src/gnome-cmd-dir.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-dir.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-dir.cc Tue Feb 26 15:08:16 2008
@@ -814,6 +814,9 @@
g_return_if_fail (GNOME_CMD_IS_FILE (finfo));
g_return_if_fail (old_uri_str!=NULL);
+ if (GNOME_CMD_IS_DIR (finfo))
+ gnome_cmd_con_remove_from_cache (dir->priv->con, old_uri_str);
+
gnome_cmd_file_collection_remove_by_uri (dir->priv->file_collection, old_uri_str);
gnome_cmd_file_collection_add (dir->priv->file_collection, finfo);
gtk_signal_emit (GTK_OBJECT (dir), dir_signals[FILE_RENAMED], finfo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]