Commit 47770be5 authored by Álvaro Peña's avatar Álvaro Peña

Album: Just two set property functions (for name and description)

parent 81c3475a
...@@ -313,3 +313,39 @@ gfbgraph_album_get_count (GFBGraphAlbum *album) ...@@ -313,3 +313,39 @@ gfbgraph_album_get_count (GFBGraphAlbum *album)
return album->priv->count; return album->priv->count;
} }
/**
* gfbgraph_album_set_name:
* @album: a #GFBGraphAlbum.
* @name: a const pointer to a #gchar.
*
* Sets the name for the @album.
**/
void
gfbgraph_album_set_name (GFBGraphAlbum *album, const gchar *name)
{
g_return_if_fail (GFBGRAPH_IS_ALBUM (album));
g_return_if_fail (name != NULL);
g_object_set (G_OBJECT (album),
"name", name,
NULL);
}
/**
* gfbgraph_album_set_description:
* @album: a #GFBGraphAlbum.
* @description: a const pointer to a #gchar.
*
* Sets the description for the @album.
**/
void
gfbgraph_album_set_description (GFBGraphAlbum *album, const gchar *description)
{
g_return_if_fail (GFBGRAPH_IS_ALBUM (album));
g_return_if_fail (description != NULL);
g_object_set (G_OBJECT (album),
"description", description,
NULL);
}
...@@ -56,6 +56,9 @@ const gchar* gfbgraph_album_get_description (GFBGraphAlbum *album); ...@@ -56,6 +56,9 @@ const gchar* gfbgraph_album_get_description (GFBGraphAlbum *album);
const gchar* gfbgraph_album_get_cover_photo_id (GFBGraphAlbum *album); const gchar* gfbgraph_album_get_cover_photo_id (GFBGraphAlbum *album);
guint gfbgraph_album_get_count (GFBGraphAlbum *album); guint gfbgraph_album_get_count (GFBGraphAlbum *album);
void gfbgraph_album_set_name (GFBGraphAlbum *album, const gchar *name);
void gfbgraph_album_set_description (GFBGraphAlbum *album, const gchar *description);
G_END_DECLS G_END_DECLS
#endif /* __GFBGRAPH_ALBUM_H__ */ #endif /* __GFBGRAPH_ALBUM_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment