[gnome-commander] debug flag: use 'u' for user actions debugging (instead of previous 'a')



commit 54bf33fe56262e3baba00ac0931feda7ca6a3f55
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Dec 13 21:41:18 2010 +0100

    debug flag: use 'u' for user actions debugging (instead of previous 'a')

 doc/C/gnome-commander.xml                     |    6 +++---
 doc/gnome-commander.1                         |    4 ++--
 src/dialogs/gnome-cmd-key-shortcuts-dialog.cc |    2 +-
 src/gnome-cmd-user-actions.cc                 |    6 +++---
 src/utils.cc                                  |    2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 9a3ca69..e840b9d 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -482,9 +482,6 @@
                 <para>Possible flags:</para>
                 <itemizedlist>
                   <listitem>
-                    <para><guilabel>a</guilabel> user actions debugging</para>
-                  </listitem>
-                  <listitem>
                     <para><guilabel>c</guilabel> file and directory counting</para>
                   </listitem>
                   <listitem>
@@ -521,6 +518,9 @@
                     <para><guilabel>t</guilabel> metadata tags</para>
                   </listitem>
                   <listitem>
+                    <para><guilabel>u</guilabel> user actions debugging</para>
+                  </listitem>
+                  <listitem>
                     <para><guilabel>v</guilabel> internal viewer</para>
                   </listitem>
                   <listitem>
diff --git a/doc/gnome-commander.1 b/doc/gnome-commander.1
index ed03c64..9894e9e 100644
--- a/doc/gnome-commander.1
+++ b/doc/gnome-commander.1
@@ -48,8 +48,6 @@ Debug output will be written to STDOUT.
 .br
 Possible flags:
 .br
-a: user actions debugging
-.br
 c: file and directory counting
 .br
 d: directory ref-counting
@@ -74,6 +72,8 @@ s: SMB network browser
 .br
 t: metadata tags
 .br
+u: user actions debugging
+.br
 v: internal viewer
 .br
 w: widget_lookup
diff --git a/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc b/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
index a62d1f1..2c36e85 100644
--- a/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
+++ b/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
@@ -542,7 +542,7 @@ inline void set_accel (GtkTreeModel *model, GtkTreePath *path, guint accel_key,
 
 static void accel_edited_callback (GtkCellRendererAccel *accel, const char *path_string, guint accel_key, GdkModifierType accel_mask, guint hardware_keycode, GtkWidget *view)
 {
-    DEBUG('a', "Key event:  %s (%#x)\n", key2str(accel_mask,accel_key).c_str(), accel_key);
+    DEBUG('u', "Key event:  %s (%#x)\n", key2str(accel_mask,accel_key).c_str(), accel_key);
 
     if (!accel_key)
         gnome_cmd_show_message (NULL, _("Invalid shortcut."));
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 3b3b371..5b28703 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -426,7 +426,7 @@ void GnomeCmdUserActions::load(const gchar *section)
 
     for (gpointer i=gnome_config_init_iterator(section_path.c_str()); (i=gnome_config_iterator_next(i, &key, &action_name)); )
     {
-        DEBUG('a',"[%s]\t%s=%s\n", section, key, action_name);
+        DEBUG('u',"[%s]\t%s=%s\n", section, key, action_name);
 
         char *action_options = strchr(action_name, '|');
 
@@ -551,8 +551,8 @@ gboolean GnomeCmdUserActions::handle_key_event(GnomeCmdMainWin *mw, GnomeCmdFile
     if (pos==action.end())
         return FALSE;
 
-    DEBUG('a', "Key event:  %s (%#x)\n", key2str(*event).c_str(), event->keyval);
-    DEBUG('a', "Handling key event by %s()\n", action_func[pos->second.func].c_str());
+    DEBUG('u', "Key event:  %s (%#x)\n", key2str(*event).c_str(), event->keyval);
+    DEBUG('u', "Handling key event by %s()\n", action_func[pos->second.func].c_str());
 
     (*pos->second.func) (NULL, (gpointer) (pos->second.user_data.empty() ? NULL : pos->second.user_data.c_str()));
 
diff --git a/src/utils.cc b/src/utils.cc
index c3780a9..a2ac1e0 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -60,7 +60,6 @@ static gchar *tmp_file_dir = NULL;
 /**
  * The already reserved debug flags:
  * --------------------------------
- * a: user actions debugging
  * c: file and directory counting
  * d: directory ref-counting
  * f: file ref-counting
@@ -73,6 +72,7 @@ static gchar *tmp_file_dir = NULL;
  * p: python plugins
  * s: smb network browser
  * t: metadata tags
+ * u: user actions debugging
  * v: internal viewer
  * w: widget_lookup
  * y: brief mime-based imageload



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