[evolution-data-server] Add constructor for EContactPhoto



commit f6e4282058a66bff7c6a3b99f8f9c01680aabd40
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Sat Jun 4 12:02:06 2011 +0100

    Add constructor for EContactPhoto
    
    This is needed by introspected bindings, otherwise they have
    no way to instantiate EContactPhotos.

 addressbook/libebook/e-contact.c                   |   13 +++++++++++++
 addressbook/libebook/e-contact.h                   |    1 +
 .../addressbook/libebook/libebook-sections.txt     |    1 +
 .../addressbook/libebook/tmpl/e-contact.sgml       |    9 +++++++++
 4 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libebook/e-contact.c b/addressbook/libebook/e-contact.c
index 3baf4ed..e7601f0 100644
--- a/addressbook/libebook/e-contact.c
+++ b/addressbook/libebook/e-contact.c
@@ -1955,6 +1955,19 @@ e_contact_date_new (void)
 }
 
 /**
+ * e_contact_photo_new:
+ *
+ * Creates a new #EContactPhoto struct.
+ *
+ * Returns: (transfer full): A new #EContactPhoto struct.
+ **/
+EContactPhoto*
+e_contact_photo_new (void)
+{
+	return g_new0 (EContactPhoto, 1);
+}
+
+/**
  * e_contact_photo_free:
  * @photo: an #EContactPhoto struct
  *
diff --git a/addressbook/libebook/e-contact.h b/addressbook/libebook/e-contact.h
index 35e5ad2..7bc4057 100644
--- a/addressbook/libebook/e-contact.h
+++ b/addressbook/libebook/e-contact.h
@@ -331,6 +331,7 @@ EContactName           *e_contact_name_from_string (const gchar *name_str);
 EContactName           *e_contact_name_copy        (EContactName *n);
 void                    e_contact_name_free        (EContactName *name);
 
+EContactPhoto*          e_contact_photo_new           (void);
 GType                   e_contact_photo_get_type      (void);
 void                    e_contact_photo_free          (EContactPhoto *photo);
 const guchar *          e_contact_photo_get_inlined   (EContactPhoto *photo, gsize *len);
diff --git a/docs/reference/addressbook/libebook/libebook-sections.txt b/docs/reference/addressbook/libebook/libebook-sections.txt
index 5a5725f..28e5d61 100644
--- a/docs/reference/addressbook/libebook/libebook-sections.txt
+++ b/docs/reference/addressbook/libebook/libebook-sections.txt
@@ -145,6 +145,7 @@ e_contact_name_from_string
 e_contact_name_copy
 e_contact_date_free
 e_contact_name_free
+e_contact_photo_new
 e_contact_photo_get_inlined
 e_contact_photo_set_inlined
 e_contact_photo_get_mime_type
diff --git a/docs/reference/addressbook/libebook/tmpl/e-contact.sgml b/docs/reference/addressbook/libebook/tmpl/e-contact.sgml
index c2b4f90..40baf1a 100644
--- a/docs/reference/addressbook/libebook/tmpl/e-contact.sgml
+++ b/docs/reference/addressbook/libebook/tmpl/e-contact.sgml
@@ -1003,6 +1003,15 @@ The URI of the contact's calendar.
 @name: 
 
 
+<!-- ##### FUNCTION e_contact_photo_new ##### -->
+<para>
+
+</para>
+
+ void: 
+ Returns: 
+
+ 
 <!-- ##### FUNCTION e_contact_photo_free ##### -->
 <para>
 



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