[gnome-commander] debug flag: added option 'a' for setting all flags



commit 0a5f9110f78bb8172fa4b248a8b37258de9511ae
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Dec 16 15:48:31 2010 +0100

    debug flag: added option 'a' for setting all flags

 doc/C/gnome-commander.xml |    3 +++
 doc/gnome-commander.1     |    2 ++
 src/main.cc               |    3 +++
 src/utils.cc              |    1 +
 4 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 6cb3226..706ed11 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -482,6 +482,9 @@
                 <para>Possible flags:</para>
                 <itemizedlist>
                   <listitem>
+                    <para><guilabel>a</guilabel> set all debug flags</para>
+                  </listitem>
+                  <listitem>
                     <para><guilabel>c</guilabel> file and directory counting</para>
                   </listitem>
                   <listitem>
diff --git a/doc/gnome-commander.1 b/doc/gnome-commander.1
index 9894e9e..4877701 100644
--- a/doc/gnome-commander.1
+++ b/doc/gnome-commander.1
@@ -48,6 +48,8 @@ Debug output will be written to STDOUT.
 .br
 Possible flags:
 .br
+a: set all debug flags
+.br
 c: file and directory counting
 .br
 d: directory ref-counting
diff --git a/src/main.cc b/src/main.cc
index 5206b8c..60d0463 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -139,6 +139,9 @@ int main (int argc, char *argv[])
                                   GNOME_PARAM_APP_DATADIR, DATADIR,
                                   GNOME_PARAM_NONE);
 
+    if (debug_flags && strchr(debug_flags,'a'))
+        debug_flags = "cdfgiklmnpstuvwyzx";
+
     gdk_rgb_init ();
     gnome_vfs_init ();
 
diff --git a/src/utils.cc b/src/utils.cc
index a2ac1e0..9f84043 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -60,6 +60,7 @@ static gchar *tmp_file_dir = NULL;
 /**
  * The already reserved debug flags:
  * --------------------------------
+ * a: set all debug flags
  * c: file and directory counting
  * d: directory ref-counting
  * f: file ref-counting



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