r19690 - gnucash/trunk/src/import-export/log-replay - Suspend GUI refresh while replaying a log file to avoid flicker and speed it up dramatically.

Mike Alexander mta at code.gnucash.org
Wed Oct 20 18:19:33 EDT 2010


Author: mta
Date: 2010-10-20 18:19:33 -0400 (Wed, 20 Oct 2010)
New Revision: 19690
Trac: http://svn.gnucash.org/trac/changeset/19690

Modified:
   gnucash/trunk/src/import-export/log-replay/gnc-plugin-log-replay.c
Log:
Suspend GUI refresh while replaying a log file to avoid flicker and speed it up dramatically.

Modified: gnucash/trunk/src/import-export/log-replay/gnc-plugin-log-replay.c
===================================================================
--- gnucash/trunk/src/import-export/log-replay/gnc-plugin-log-replay.c	2010-10-20 21:31:39 UTC (rev 19689)
+++ gnucash/trunk/src/import-export/log-replay/gnc-plugin-log-replay.c	2010-10-20 22:19:33 UTC (rev 19690)
@@ -29,6 +29,7 @@
 #include "gnc-log-replay.h"
 #include "gnc-plugin-log-replay.h"
 #include "gnc-plugin-manager.h"
+#include "gnc-component-manager.h"
 
 static void gnc_plugin_log_replay_class_init (GncPluginLogreplayClass *klass);
 static void gnc_plugin_log_replay_init (GncPluginLogreplay *plugin);
@@ -148,7 +149,9 @@
 gnc_plugin_log_replay_cmd_new_log_replay (GtkAction *action,
         GncMainWindowActionData *data)
 {
+    gnc_suspend_gui_refresh();
     gnc_file_log_replay ();
+    gnc_resume_gui_refresh();
 }
 
 /************************************************************



More information about the gnucash-changes mailing list