[gnome-commander/gcmd-1-3] Fixed problem #571495 (replacing deprecated gnome_execute_shell() with g_spawn_async()), 1/3



commit f02d028be2ffbc5a9af48fe58c551e32cb20cf10
Author: Ilya B <concious mail ru>
Date:   Fri Jul 3 16:44:36 2009 +0200

    Fixed problem #571495 (replacing deprecated gnome_execute_shell() with g_spawn_async()), 1/3

 src/gnome-cmd-file-selector.cc |    2 +-
 src/gnome-cmd-file.cc          |    2 +-
 src/gnome-cmd-user-actions.cc  |    4 ++--
 src/utils.cc                   |    2 +-
 src/utils.h                    |    2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 7192b97..641329d 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -1697,7 +1697,7 @@ static gboolean on_new_textfile_ok (GnomeCmdStringDialog *string_dialog, const g
     g_free (escaped_filepath);
 
     if (cmd)
-        run_command (cmd, FALSE);
+        run_command (cmd);
 
     return TRUE;
 }
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index e3332f9..d8bb37b 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -743,7 +743,7 @@ inline void do_view_file (GnomeCmdFile *f, gint internal_viewer=-1)
         case FALSE: {
                         gchar *filename = gnome_cmd_file_get_quoted_real_path (f);
                         gchar *command = g_strdup_printf (gnome_cmd_data.get_viewer(), filename);
-                        run_command (command, FALSE);
+                        run_command (command);
                         g_free (filename);
                     }
                     break;
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 87fe44b..d163a6d 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -837,7 +837,7 @@ void file_diff (GtkMenuItem *menuitem, gpointer not_used)
         gchar *cmd = g_strdup_printf (gnome_cmd_data.get_differ(), s.c_str(), "");
 
         g_print (_("running `%s'\n"), cmd);
-        run_command (cmd, FALSE);
+        run_command (cmd);
 
         g_free (cmd);
     }
@@ -874,7 +874,7 @@ void file_sync_dirs (GtkMenuItem *menuitem, gpointer not_used)
     gchar *cmd = g_strdup_printf (gnome_cmd_data.get_differ(), s.c_str(), "");
 
     g_print (_("running `%s'\n"), cmd);
-    run_command (cmd, FALSE);
+    run_command (cmd);
 
     g_free (cmd);
 }
diff --git a/src/utils.cc b/src/utils.cc
index a19615e..fb4ce3c 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -1268,7 +1268,7 @@ void edit_mimetypes (const gchar *mime_type, gboolean blocking)
     if (blocking)
         system (cmd.c_str());
     else
-        run_command (cmd.c_str(), FALSE);
+        run_command (cmd.c_str());
 }
 
 
diff --git a/src/utils.h b/src/utils.h
index a3bbd8f..5f7efb6 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -41,7 +41,7 @@ void warn_print (const gchar *fmt, ...);
 
 void run_command_indir (const gchar *command, const gchar *dir, gboolean term);
 
-inline void run_command (const gchar *command, gboolean term)
+inline void run_command (const gchar *command, gboolean term=FALSE)
 {
     run_command_indir (command, NULL, term);
 }



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