From 60ba32c6a6232c92ee9d450941db7277e422e56a Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Wed, 20 Oct 2010 22:19:33 +0000 Subject: [PATCH] Suspend GUI refresh while replaying a log file to avoid flicker and speed it up dramatically. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19690 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/import-export/log-replay/gnc-plugin-log-replay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/import-export/log-replay/gnc-plugin-log-replay.c b/src/import-export/log-replay/gnc-plugin-log-replay.c index 3bd06a53ef..01a4868898 100644 --- a/src/import-export/log-replay/gnc-plugin-log-replay.c +++ b/src/import-export/log-replay/gnc-plugin-log-replay.c @@ -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 @@ static void gnc_plugin_log_replay_cmd_new_log_replay (GtkAction *action, GncMainWindowActionData *data) { + gnc_suspend_gui_refresh(); gnc_file_log_replay (); + gnc_resume_gui_refresh(); } /************************************************************