Commit 345ab80c authored by Álvaro Peña's avatar Álvaro Peña

Node: A useful function to set the ID of a node.

parent 47770be5
......@@ -373,6 +373,25 @@ gfbgraph_node_get_updated_time (GFBGraphNode *node)
return node->priv->updated_time;
* gfbgraph_node_set_id:
* @node: a #GFBGraphNode.
* @id: a const pointer to a #gchar.
* Sets the ID for a node. Just useful when a new node is created
* and the Graph API returns the ID of the new created node.
gfbgraph_node_set_id (GFBGraphNode *node, const gchar *id)
g_return_if_fail (GFBGRAPH_IS_NODE (node));
g_return_if_fail (id != NULL);
g_object_set (G_OBJECT (node),
"id", id,
* gfbgraph_node_get_connection_nodes:
* @node: a #GFBGraphNode object which retrieve the connected nodes.
......@@ -65,6 +65,8 @@ const gchar* gfbgraph_node_get_link (GFBGraphNode *node);
const gchar* gfbgraph_node_get_created_time (GFBGraphNode *node);
const gchar* gfbgraph_node_get_updated_time (GFBGraphNode *node);
void gfbgraph_node_set_id (GFBGraphNode *node, const gchar *id);
GList* gfbgraph_node_get_connection_nodes (GFBGraphNode *node,
GType node_type,
GFBGraphAuthorizer *authorizer,
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