gnome-commander r1590 - in trunk: . doc/C src



Author: epiotr
Date: Tue Feb 26 15:07:58 2008
New Revision: 1590
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1590&view=rev

Log:
Fixed problem #449137 (renamed directories not accessed by name)

Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/doc/C/gnome-commander.xml
   trunk/src/gnome-cmd-con.cc
   trunk/src/gnome-cmd-con.h
   trunk/src/gnome-cmd-dir.cc

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Tue Feb 26 15:07:58 2008
@@ -11,6 +11,7 @@
  * Fixed problem #434545 (Debian bug #421480: HUGE icons for device icons)
  * Fixed problem #447415 (inability to launch executables)
  * Fixed problem #448942 (SHIFT+ENTER: running a command in a separate terminal)
+ * Fixed problem #449137 (renamed directories not accessed by name)
  * Fixed problem #468685 (crash in python module)
  * Fixed problem #490431 (view files with name containing '%')
  * Fixed problem #508565 (improper utf-8 handling in advanced file rename tool)

Modified: trunk/doc/C/gnome-commander.xml
==============================================================================
--- trunk/doc/C/gnome-commander.xml	(original)
+++ trunk/doc/C/gnome-commander.xml	Tue Feb 26 15:07:58 2008
@@ -5805,6 +5805,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: trunk/src/gnome-cmd-con.cc
==============================================================================
--- trunk/src/gnome-cmd-con.cc	(original)
+++ trunk/src/gnome-cmd-con.cc	Tue Feb 26 15:07:58 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: trunk/src/gnome-cmd-con.h
==============================================================================
--- trunk/src/gnome-cmd-con.h	(original)
+++ trunk/src/gnome-cmd-con.h	Tue Feb 26 15:07:58 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: trunk/src/gnome-cmd-dir.cc
==============================================================================
--- trunk/src/gnome-cmd-dir.cc	(original)
+++ trunk/src/gnome-cmd-dir.cc	Tue Feb 26 15:07:58 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]