diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-26 20:22:58 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-08-26 20:24:15 +0800 |
commit | df385fa05b527bbc72392e33f2f4786393702d3e (patch) | |
tree | d0e569f7f6a23a8d01b7fc47923991a14d7c37d5 /plugins | |
parent | f9cd7c9516c1be2d9c0fa4aeb016e7590839301b (diff) | |
download | gsoc2013-evolution-df385fa05b527bbc72392e33f2f4786393702d3e.tar.gz gsoc2013-evolution-df385fa05b527bbc72392e33f2f4786393702d3e.tar.zst gsoc2013-evolution-df385fa05b527bbc72392e33f2f4786393702d3e.zip |
Changing source in CompEditor blocks UI
Diffstat (limited to 'plugins')
-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; |