gnome-commander r1842 - in trunk: . src



Author: epiotr
Date: Sat Jun 14 22:22:46 2008
New Revision: 1842
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1842&view=rev

Log:
Simplified code for "file.sendto" user action

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	Sat Jun 14 22:22:46 2008
@@ -707,29 +707,7 @@
 
 void file_sendto (GtkMenuItem *menuitem, gpointer not_used)
 {
-    string cmd = "nautilus-sendto";
-
-    GnomeCmdFileList *fl = get_fl (ACTIVE);
-    GList *sfl = gnome_cmd_file_list_get_selected_files (fl);
-    sfl = gnome_cmd_file_list_sort_selection (sfl, fl);
-
-    for (GList *i = sfl; i; i = i->next)
-    {
-        GnomeCmdFile *finfo = GNOME_CMD_FILE (i->data);
-
-        if (!finfo)
-            continue;
-
-        cmd += ' ';
-        cmd += (char *) gnome_cmd_file_get_quoted_real_path (finfo);
-    }
-
-    g_list_free (sfl);
-
-    g_print (_("running `%s'\n"), cmd.c_str());
-
-    if (cmd != "nautilus-sendto")
-        run_command (cmd.c_str(), FALSE);
+    command_execute (menuitem, (gpointer) "nautilus-sendto %s");
 }
 
 



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