diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-22 14:09:19 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-22 14:09:19 +0800 |
commit | abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb (patch) | |
tree | 7c2eac2e74771b8f9b7cc6f62d3f6b0e8ee9c19a /mail | |
parent | b44e6e4a87771e5348ca73f4f648c4083278c78a (diff) | |
download | gsoc2013-evolution-abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb.tar gsoc2013-evolution-abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb.tar.gz gsoc2013-evolution-abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb.tar.bz2 gsoc2013-evolution-abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb.tar.lz gsoc2013-evolution-abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb.tar.xz gsoc2013-evolution-abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb.tar.zst gsoc2013-evolution-abb9648eb5ab7a4cceadbf5054a794a84c9fe3cb.zip |
force check of autosaved messages as soon as the mailer starts up (well,
2004-04-22 Not Zed <NotZed@Ximian.com>
* mail-component.c
(view_control_activate_cb): force check of autosaved messages as
soon as the mailer starts up (well, after a delay, this seems
wrong). #57093.
svn path=/trunk/; revision=25576
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/mail-component.c | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 81dfff224a..e7edfcf811 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -3,6 +3,9 @@ * mail-component.c (view_changed_cb): display selected count instead of unread if we have >1 selected. Also don't do special case drafts/sent/outbox stuff if folders are inbox or re-used. + (view_control_activate_cb): force check of autosaved messages as + soon as the mailer starts up (well, after a delay, this seems + wrong). #57093. 2004-04-21 Not Zed <NotZed@Ximian.com> diff --git a/mail/mail-component.c b/mail/mail-component.c index 0d83da9112..05ca8cfb5a 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -365,11 +365,20 @@ get_prop(BonoboPropertyBag *bag, BonoboArg *arg, guint arg_id, CORBA_Environment } } +static int +check_autosave(void *data) +{ + e_msg_composer_check_autosave(NULL); + + return FALSE; +} + static void view_control_activate_cb (BonoboControl *control, gboolean activate, EMFolderView *view) { BonoboUIComponent *uic; - + static int recover = 0; + uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); @@ -389,6 +398,14 @@ view_control_activate_cb (BonoboControl *control, gboolean activate, EMFolderVie em_folder_view_activate (view, uic, activate); bonobo_ui_component_unset_container (uic, NULL); } + + /* This is a weird place to put it, but createControls does it too early. + I also think we should wait to do it until we actually visit the mailer. + The delay is arbitrary - without it it shows up before the main window */ + if (!recover) { + recover = 1; + g_timeout_add(1000, check_autosave, NULL); + } } /* GObject methods. */ |