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



Author: epiotr
Date: Fri Feb 22 23:17:46 2008
New Revision: 1580
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1580&view=rev

Log:
Do not show password in File.Link tag

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

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	Fri Feb 22 23:17:46 2008
@@ -397,12 +397,12 @@
 }
 
 
-gchar *gnome_cmd_file_get_uri_str (GnomeCmdFile *finfo)
+gchar *gnome_cmd_file_get_uri_str (GnomeCmdFile *finfo, GnomeVFSURIHideOptions hide_options)
 {
     g_return_val_if_fail (GNOME_CMD_IS_FILE (finfo), NULL);
 
     GnomeVFSURI *uri = gnome_cmd_file_get_uri (finfo);
-    gchar *uri_str = gnome_vfs_uri_to_string (uri, GNOME_VFS_URI_HIDE_NONE);
+    gchar *uri_str = gnome_vfs_uri_to_string (uri, hide_options);
     gnome_vfs_uri_unref (uri);
 
     return uri_str;

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	Fri Feb 22 23:17:46 2008
@@ -80,7 +80,7 @@
 gchar *gnome_cmd_file_get_dirname (GnomeCmdFile *finfo);
 gchar *gnome_cmd_file_get_unescaped_dirname (GnomeCmdFile *finfo);
 GnomeVFSURI *gnome_cmd_file_get_uri (GnomeCmdFile *finfo);
-gchar *gnome_cmd_file_get_uri_str (GnomeCmdFile *finfo);
+gchar *gnome_cmd_file_get_uri_str (GnomeCmdFile *finfo, GnomeVFSURIHideOptions hide_options=GNOME_VFS_URI_HIDE_NONE);
 
 const gchar *gnome_cmd_file_get_extension (GnomeCmdFile *finfo);
 const gchar *gnome_cmd_file_get_owner (GnomeCmdFile *finfo);

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	Fri Feb 22 23:17:46 2008
@@ -62,7 +62,7 @@
 
     g_free(dpath);
 
-    gchar *uri_str = gnome_cmd_file_get_uri_str (finfo);
+    gchar *uri_str = gnome_cmd_file_get_uri_str (finfo, GNOME_VFS_URI_HIDE_PASSWORD);
     finfo->metadata->add(TAG_FILE_LINK, uri_str);
     g_free(uri_str);
 



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