aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/cal-config-webcal/evolution-cal-config-webcal.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/cal-config-webcal/evolution-cal-config-webcal.c b/modules/cal-config-webcal/evolution-cal-config-webcal.c
index 2ca3550f00..70eb06caf5 100644
--- a/modules/cal-config-webcal/evolution-cal-config-webcal.c
+++ b/modules/cal-config-webcal/evolution-cal-config-webcal.c
@@ -78,7 +78,6 @@ cal_config_webcal_text_to_uri (GBinding *binding,
GValue *target_value,
gpointer user_data)
{
- GObject *target;
ESource *source;
SoupURI *soup_uri;
ESourceAuthentication *extension;
@@ -92,9 +91,7 @@ cal_config_webcal_text_to_uri (GBinding *binding,
if (soup_uri == NULL)
return FALSE;
- target = g_binding_get_target (binding);
- source = e_source_extension_get_source (E_SOURCE_EXTENSION (target));
-
+ source = E_SOURCE (user_data);
extension_name = E_SOURCE_EXTENSION_AUTHENTICATION;
extension = e_source_get_extension (source, extension_name);
user = e_source_authentication_get_user (extension);
@@ -151,7 +148,8 @@ cal_config_webcal_insert_widgets (ESourceConfigBackend *backend,
G_BINDING_SYNC_CREATE,
cal_config_webcal_uri_to_text,
cal_config_webcal_text_to_uri,
- NULL, (GDestroyNotify) NULL);
+ g_object_ref (scratch_source),
+ (GDestroyNotify) g_object_unref);
}
static gboolean