[evolution-data-server] Add constructor for EContactAddress



commit 268e7be0c2dedb9ffb66130d9877a5634239ba1e
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Sun Jun 5 19:02:46 2011 +0100

    Add constructor for EContactAddress
    
    Needed by introspected bindings.

 addressbook/libebook/e-contact.c                   |   13 +++++++++++++
 addressbook/libebook/e-contact.h                   |    1 +
 .../addressbook/libebook/libebook-sections.txt     |    1 +
 .../addressbook/libebook/tmpl/e-contact.sgml       |    8 ++++++++
 4 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libebook/e-contact.c b/addressbook/libebook/e-contact.c
index e7601f0..294ac8e 100644
--- a/addressbook/libebook/e-contact.c
+++ b/addressbook/libebook/e-contact.c
@@ -2163,6 +2163,19 @@ e_contact_geo_copy (EContactGeo *geo)
 E_CONTACT_DEFINE_BOXED_TYPE (e_contact_geo, "EContactGeo")
 
 /**
+ * e_contact_address_new:
+ *
+ * Creates a new #EContactAddress struct.
+ *
+ * Returns: (transfer full): A new #EContactAddress struct.
+ **/
+EContactAddress*
+e_contact_address_new (void)
+{
+	return g_new0 (EContactAddress, 1);
+}
+
+/**
  * e_contact_address_free:
  * @address: an #EContactAddress
  *
diff --git a/addressbook/libebook/e-contact.h b/addressbook/libebook/e-contact.h
index 7bc4057..729eeeb 100644
--- a/addressbook/libebook/e-contact.h
+++ b/addressbook/libebook/e-contact.h
@@ -347,6 +347,7 @@ void			e_contact_geo_free	   (EContactGeo *geo);
 GType                   e_contact_cert_get_type    (void);
 void                    e_contact_cert_free        (EContactCert *cert);
 
+EContactAddress*        e_contact_address_new      (void);
 GType                   e_contact_address_get_type (void);
 void                    e_contact_address_free     (EContactAddress *address);
 
diff --git a/docs/reference/addressbook/libebook/libebook-sections.txt b/docs/reference/addressbook/libebook/libebook-sections.txt
index 28e5d61..be7f0e6 100644
--- a/docs/reference/addressbook/libebook/libebook-sections.txt
+++ b/docs/reference/addressbook/libebook/libebook-sections.txt
@@ -154,6 +154,7 @@ e_contact_photo_get_uri
 e_contact_photo_set_uri
 e_contact_photo_free
 e_contact_geo_free
+e_contact_address_new
 e_contact_address_free
 e_contact_field_name
 e_contact_pretty_name
diff --git a/docs/reference/addressbook/libebook/tmpl/e-contact.sgml b/docs/reference/addressbook/libebook/tmpl/e-contact.sgml
index 40baf1a..3810cd6 100644
--- a/docs/reference/addressbook/libebook/tmpl/e-contact.sgml
+++ b/docs/reference/addressbook/libebook/tmpl/e-contact.sgml
@@ -1081,6 +1081,14 @@ The URI of the contact's calendar.
 @geo: 
 
 
+<!-- ##### FUNCTION e_contact_photo_new ##### -->
+<para>
+
+</para>
+
+ void: 
+ Returns: 
+
 <!-- ##### FUNCTION e_contact_address_free ##### -->
 <para>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]