Add constructor for EContactPhoto
authorRaul Gutierrez Segales <rgs@collabora.co.uk>
Sat, 4 Jun 2011 11:02:06 +0000 (12:02 +0100)
committerRaul Gutierrez Segales <rgs@collabora.co.uk>
Mon, 6 Jun 2011 10:24:54 +0000 (11:24 +0100)
This is needed by introspected bindings, otherwise they have
no way to instantiate EContactPhotos.

addressbook/libebook/e-contact.c
addressbook/libebook/e-contact.h
docs/reference/addressbook/libebook/libebook-sections.txt
docs/reference/addressbook/libebook/tmpl/e-contact.sgml

index 3baf4ed..e7601f0 100644 (file)
@@ -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
  *
index 35e5ad2..7bc4057 100644 (file)
@@ -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);
index 5a5725f..28e5d61 100644 (file)
@@ -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
index c2b4f90..40baf1a 100644 (file)
@@ -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>