gnome-commander r1839 - in trunk: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1839 - in trunk: . src
- Date: Fri, 13 Jun 2008 12:54:44 +0000 (UTC)
Author: epiotr
Date: Fri Jun 13 12:54:43 2008
New Revision: 1839
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1839&view=rev
Log:
Build fix for g++ 4.3
Modified:
trunk/ChangeLog
trunk/src/gnome-cmd-user-actions.cc
Modified: trunk/src/gnome-cmd-user-actions.cc
==============================================================================
--- trunk/src/gnome-cmd-user-actions.cc (original)
+++ trunk/src/gnome-cmd-user-actions.cc Fri Jun 13 12:54:43 2008
@@ -939,6 +939,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);
@@ -962,7 +974,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]