diff options
author | Milan Crha <mcrha@redhat.com> | 2008-12-08 19:05:08 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-12-08 19:05:08 +0800 |
commit | 4c4c720bc836942d471d272bce48f00959ea9742 (patch) | |
tree | d07e49ef29d947d75ea007b7d4784952f31950a0 /plugins/caldav | |
parent | 4eed8ee19e71b199239dc12e936e9b3e650eb2fc (diff) | |
download | gsoc2013-evolution-4c4c720bc836942d471d272bce48f00959ea9742.tar gsoc2013-evolution-4c4c720bc836942d471d272bce48f00959ea9742.tar.gz gsoc2013-evolution-4c4c720bc836942d471d272bce48f00959ea9742.tar.bz2 gsoc2013-evolution-4c4c720bc836942d471d272bce48f00959ea9742.tar.lz gsoc2013-evolution-4c4c720bc836942d471d272bce48f00959ea9742.tar.xz gsoc2013-evolution-4c4c720bc836942d471d272bce48f00959ea9742.tar.zst gsoc2013-evolution-4c4c720bc836942d471d272bce48f00959ea9742.zip |
** Fix for bug #562990
2008-12-08 Milan Crha <mcrha@redhat.com>
** Fix for bug #562990
* caldav-source.c: (user_changed), (oge_caldav): Use 'username'
property of the ESource to read/write user name, not the uri.
svn path=/trunk/; revision=36850
Diffstat (limited to 'plugins/caldav')
-rw-r--r-- | plugins/caldav/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/caldav/caldav-source.c | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/plugins/caldav/ChangeLog b/plugins/caldav/ChangeLog index ca3d819ecf..8236b8f2e2 100644 --- a/plugins/caldav/ChangeLog +++ b/plugins/caldav/ChangeLog @@ -1,3 +1,10 @@ +2008-12-08 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #562990 + + * caldav-source.c: (user_changed), (oge_caldav): Use 'username' + property of the ESource to read/write user name, not the uri. + 2008-11-28 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #503662 diff --git a/plugins/caldav/caldav-source.c b/plugins/caldav/caldav-source.c index 81e5b0fdd9..6fb7ea3841 100644 --- a/plugins/caldav/caldav-source.c +++ b/plugins/caldav/caldav-source.c @@ -190,16 +190,15 @@ user_changed (GtkEntry *editable, ESource *source) euri = e_uri_new (uri); g_free (euri->user); + euri->user = NULL; if (user != NULL && *user) { - euri->user = g_strdup (user); e_source_set_property (source, "auth", "1"); } else { e_source_set_property (source, "auth", NULL); - euri->user = NULL; } - e_source_set_property (source, "username", euri->user); + e_source_set_property (source, "username", user); ruri = print_uri_noproto (euri); e_source_set_relative_uri (source, ruri); g_free (ruri); @@ -328,10 +327,12 @@ oge_caldav (EPlugin *epl, return NULL; } - username = euri->user; + g_free (euri->user); euri->user = NULL; uri = e_uri_to_string (euri, FALSE); + username = e_source_get_duped_property (source, "username"); + ssl_prop = e_source_get_property (source, "ssl"); if (ssl_prop && ssl_prop[0] == '1') { ssl_enabled = TRUE; |