[gnome-online-miners/wip/facebook: 4/8] src: used the GFBUser _get_name function
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-miners/wip/facebook: 4/8] src: used the GFBUser _get_name function
- Date: Mon, 29 Jul 2013 12:37:20 +0000 (UTC)
commit 2e727455bce84b6ff28401d08f3504de2d8594bb
Author: Álvaro Peña <alvaropg gmail com>
Date: Tue Jul 23 21:33:14 2013 +0200
src: used the GFBUser _get_name function
src/gom-facebook-miner.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/gom-facebook-miner.c b/src/gom-facebook-miner.c
index a9b9bf6..276b590 100644
--- a/src/gom-facebook-miner.c
+++ b/src/gom-facebook-miner.c
@@ -89,7 +89,7 @@ static void
query_facebook (GomAccountMinerJob *job, GError **error)
{
GFBGraphUser *me;
- gchar *me_name;
+ const gchar *me_name;
GList *albums = NULL;
GList *album_iter = NULL;
GError *tmp_error = NULL;
@@ -100,7 +100,7 @@ query_facebook (GomAccountMinerJob *job, GError **error)
goto out;
}
- g_object_get (me, "name", &me_name, NULL);
+ me_name = gfbgraph_user_get_name (me);
albums = gfbgraph_user_get_albums (me, GFBGRAPH_AUTHORIZER (job->service), &tmp_error);
if (tmp_error != NULL) {
@@ -125,9 +125,6 @@ query_facebook (GomAccountMinerJob *job, GError **error)
if (albums != NULL)
g_list_free_full (albums, g_object_unref);
- if (me_name)
- g_free (me_name);
-
g_clear_object (&me);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]