aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-10-13 22:06:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-10-13 22:52:32 +0800
commitf81e89acbf04d70d559f16c0bdf173e5f7f80493 (patch)
tree38c52ae1320347102c911b359e87297d3fa41a6c /modules
parentae790f3bcc17004e03f2830bcc7350787eadd530 (diff)
downloadgsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar
gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.gz
gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.bz2
gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.lz
gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.xz
gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.zst
gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.zip
Prefer e_source_extension_ref_source().
e_source_extension_get_source() is now deprecated.
Diffstat (limited to 'modules')
-rw-r--r--modules/book-config-ldap/e-source-ldap.c6
-rw-r--r--modules/book-config-webdav/evolution-book-config-webdav.c4
-rw-r--r--modules/cal-config-contacts/e-source-contacts.c4
3 files changed, 9 insertions, 5 deletions
diff --git a/modules/book-config-ldap/e-source-ldap.c b/modules/book-config-ldap/e-source-ldap.c
index a491409029..18bb104498 100644
--- a/modules/book-config-ldap/e-source-ldap.c
+++ b/modules/book-config-ldap/e-source-ldap.c
@@ -20,8 +20,6 @@
#include <ldap.h>
-#include <libedataserver/libedataserver.h>
-
#define E_SOURCE_LDAP_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
((obj), E_TYPE_SOURCE_LDAP, ESourceLDAPPrivate))
@@ -245,7 +243,7 @@ source_ldap_constructed (GObject *object)
const gchar *extension_name;
this_extension = E_SOURCE_EXTENSION (object);
- source = e_source_extension_get_source (this_extension);
+ source = e_source_extension_ref_source (this_extension);
extension_name = E_SOURCE_EXTENSION_AUTHENTICATION;
other_extension = e_source_get_extension (source, extension_name);
@@ -270,6 +268,8 @@ source_ldap_constructed (GObject *object)
source_ldap_transform_enum_nick_to_value,
source_ldap_transform_enum_value_to_nick,
NULL, (GDestroyNotify) NULL);
+
+ g_object_unref (source);
}
static void
diff --git a/modules/book-config-webdav/evolution-book-config-webdav.c b/modules/book-config-webdav/evolution-book-config-webdav.c
index 78b92a6384..0e7a6f30f2 100644
--- a/modules/book-config-webdav/evolution-book-config-webdav.c
+++ b/modules/book-config-webdav/evolution-book-config-webdav.c
@@ -94,7 +94,7 @@ book_config_webdav_text_to_uri (GBinding *binding,
return FALSE;
target = g_binding_get_target (binding);
- source = e_source_extension_get_source (E_SOURCE_EXTENSION (target));
+ source = e_source_extension_ref_source (E_SOURCE_EXTENSION (target));
extension_name = E_SOURCE_EXTENSION_AUTHENTICATION;
extension = e_source_get_extension (source, extension_name);
@@ -104,6 +104,8 @@ book_config_webdav_text_to_uri (GBinding *binding,
g_value_take_boxed (target_value, soup_uri);
+ g_object_unref (source);
+
return TRUE;
}
diff --git a/modules/cal-config-contacts/e-source-contacts.c b/modules/cal-config-contacts/e-source-contacts.c
index 8e8eac3be6..c19cc6694b 100644
--- a/modules/cal-config-contacts/e-source-contacts.c
+++ b/modules/cal-config-contacts/e-source-contacts.c
@@ -86,7 +86,7 @@ source_contacts_constructed (GObject *object)
G_OBJECT_CLASS (e_source_contacts_parent_class)->constructed (object);
extension = E_SOURCE_EXTENSION (object);
- source = e_source_extension_get_source (extension);
+ source = e_source_extension_ref_source (extension);
extension_name = E_SOURCE_EXTENSION_ADDRESS_BOOK;
backend_extension = e_source_get_extension (source, extension_name);
@@ -97,6 +97,8 @@ source_contacts_constructed (GObject *object)
contacts_extension = E_SOURCE_CONTACTS (extension);
e_source_contacts_set_include_me (contacts_extension, include_me);
+
+ g_object_unref (source);
}
static void