aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-07-24 06:42:59 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-07-24 06:42:59 +0800
commit1bddc83831d27affaeb2d53d6808c696cecb5021 (patch)
treec6073077b2c93a1134e9721ed4b128736ad6eae0 /composer
parentf14e08e0a8ebbe645ddc1396f6c5fa0d6ac48f2b (diff)
downloadgsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar.gz
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar.bz2
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar.lz
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar.xz
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar.zst
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.zip
restart automanager to avoid multiple dialog apearing
2002-07-23 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (autosave_run): restart automanager to avoid multiple dialog apearing svn path=/trunk/; revision=17559
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c8
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 <rodo@ximian.com>
+
+ * e-msg-composer.c (autosave_run): restart automanager to avoid
+ multiple dialog apearing
+
2002-07-23 Not Zed <NotZed@Ximian.com>
* 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