diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-26 20:22:58 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:57 +0800 |
commit | bc03bf534a55275bd7e5de99e0c0b612d33c25d7 (patch) | |
tree | 1083d6d6d91b59d87208b175a40b890d6e36e113 /plugins/mail-to-task | |
parent | 1fcec870ae72635a85a9b377c5e62f4b764d5354 (diff) | |
download | gsoc2013-evolution-bc03bf534a55275bd7e5de99e0c0b612d33c25d7.tar gsoc2013-evolution-bc03bf534a55275bd7e5de99e0c0b612d33c25d7.tar.gz gsoc2013-evolution-bc03bf534a55275bd7e5de99e0c0b612d33c25d7.tar.bz2 gsoc2013-evolution-bc03bf534a55275bd7e5de99e0c0b612d33c25d7.tar.lz gsoc2013-evolution-bc03bf534a55275bd7e5de99e0c0b612d33c25d7.tar.xz gsoc2013-evolution-bc03bf534a55275bd7e5de99e0c0b612d33c25d7.tar.zst gsoc2013-evolution-bc03bf534a55275bd7e5de99e0c0b612d33c25d7.zip |
Changing source in CompEditor blocks UI
Diffstat (limited to 'plugins/mail-to-task')
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index ddcd1328d1..a39456a00f 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -827,6 +827,20 @@ do_mail_to_event (AsyncData *data) struct icaltimetype tt, tt2; struct _manage_comp *oldmc = NULL; + #define cache_backend_prop(prop) { \ + gchar *val = NULL; \ + e_client_get_backend_property_sync (E_CLIENT (client), prop, &val, NULL, NULL); \ + g_free (val); \ + } + + /* precache backend properties, thus editor have them ready when needed */ + cache_backend_prop (CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS); + cache_backend_prop (CAL_BACKEND_PROPERTY_ALARM_EMAIL_ADDRESS); + cache_backend_prop (CAL_BACKEND_PROPERTY_DEFAULT_OBJECT); + e_client_get_capabilities (E_CLIENT (client)); + + #undef cache_backend_prop + /* set start day of the event as today, without time - easier than looking for a calendar's time zone */ tt = icaltime_today (); dt.value = &tt; |