[gnome-commander] Set default term to FALSE in run_command ()



commit e010630e04ead08d7747c2835aeda57d771d5af4
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Jul 2 23:14:47 2009 +0200

    Set default term to FALSE in run_command ()

 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 294e106..b5b2fd6 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 c371ac1..359c81c 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -833,7 +833,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);
     }
@@ -870,7 +870,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 e37a026..62f715e 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);
     else
-        run_command (cmd, FALSE);
+        run_command (cmd);
     g_free (cmd);
 }
 
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]