[gimp] app: add --verbose output when parsing and writing the action history



commit c077fb8dadaff55b4e2de793212827166be222f5
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jul 29 18:13:57 2014 +0200

    app: add --verbose output when parsing and writing the action history

 app/widgets/gimpaction-history.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpaction-history.c b/app/widgets/gimpaction-history.c
index 14aea39..da84b62 100644
--- a/app/widgets/gimpaction-history.c
+++ b/app/widgets/gimpaction-history.c
@@ -93,6 +93,10 @@ gimp_action_history_init (Gimp *gimp)
     }
 
   file = gimp_directory_file (GIMP_ACTION_HISTORY_FILENAME, NULL);
+
+  if (gimp->be_verbose)
+    g_print ("Parsing '%s'\n", gimp_file_get_utf8_name (file));
+
   scanner = gimp_scanner_new_gfile (file, NULL);
   g_object_unref (file);
 
@@ -208,6 +212,10 @@ gimp_action_history_exit (Gimp *gimp)
     min_count = item->count - 1;
 
   file = gimp_directory_file (GIMP_ACTION_HISTORY_FILENAME, NULL);
+
+  if (gimp->be_verbose)
+    g_print ("Writing '%s'\n", gimp_file_get_utf8_name (file));
+
   writer = gimp_config_writer_new_gfile (file, TRUE, "GIMP action-history",
                                          NULL);
   g_object_unref (file);


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