From 1bddc83831d27affaeb2d53d6808c696cecb5021 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 23 Jul 2002 22:42:59 +0000 Subject: restart automanager to avoid multiple dialog apearing 2002-07-23 Radek Doulik * e-msg-composer.c (autosave_run): restart automanager to avoid multiple dialog apearing svn path=/trunk/; revision=17559 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 55ef9d90e2..9b3f1f6b34 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2002-07-23 Radek Doulik + + * e-msg-composer.c (autosave_run): restart automanager to avoid + multiple dialog apearing + 2002-07-23 Not Zed * Applied patch below. diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 5d044725c9..794c588b18 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -163,7 +163,6 @@ static void handle_multipart_signed (EMsgComposer *composer, CamelMultipart *mul static void set_editor_signature (EMsgComposer *composer); - static GByteArray * get_text (Bonobo_PersistStream persist, char *format) @@ -1117,6 +1116,8 @@ struct _AutosaveManager { }; static AutosaveManager *am = NULL; +static void autosave_manager_start (AutosaveManager *am); +static void autosave_manager_stop (AutosaveManager *am); static gboolean autosave_save_draft (EMsgComposer *composer) @@ -1302,8 +1303,11 @@ autosave_run (gpointer data) AutosaveManager *am = data; g_hash_table_foreach (am->table, (GHFunc)autosave_run_foreach_cb, am); + + autosave_manager_stop (am); + autosave_manager_start (am); - return TRUE; + return FALSE; } static gboolean -- cgit v1.2.3