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



Author: epiotr
Date: Fri Jun 13 12:55:01 2008
New Revision: 1840
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1840&view=rev

Log:
Build fix for g++ 4.3

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-user-actions.cc

Modified: branches/gcmd-1-3/src/gnome-cmd-user-actions.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-user-actions.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-user-actions.cc	Fri Jun 13 12:55:01 2008
@@ -940,6 +940,18 @@
 }
 
 
+template <typename F, typename T>
+inline void get_file_list (string &s, GList *sfl, F f, T t)
+{
+    vector<string> a;
+
+    for (GList *i = sfl; i; i = i->next)
+        a.push_back ((*f) (GNOME_CMD_FILE (i->data), t));
+
+    join (s, a.begin(), a.end());
+}
+
+
 void command_execute (GtkMenuItem *menuitem, gpointer command)
 {
     g_return_if_fail (command != NULL);
@@ -963,7 +975,7 @@
     get_file_list (quoted_filename, sfl, gnome_cmd_file_get_quoted_name);
     get_file_list (file_path, sfl, gnome_cmd_file_get_real_path);
     get_file_list (quoted_file_path, sfl, gnome_cmd_file_get_quoted_real_path);
-    get_file_list (uri, sfl, gnome_cmd_file_get_uri_str);
+    get_file_list (uri, sfl, gnome_cmd_file_get_uri_str, GNOME_VFS_URI_HIDE_NONE);
 
     g_list_free (sfl);
 



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