[gnome-online-accounts] backend: Use goa_object_skeleton_attach_printers() helper
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] backend: Use goa_object_skeleton_attach_printers() helper
- Date: Tue, 15 Mar 2016 18:27:59 +0000 (UTC)
commit f10bff0fabbc2f7a3f5b126f05ec5cefd2b51205
Author: Christophe Fergeau <cfergeau redhat com>
Date: Sun May 3 19:17:04 2015 +0200
backend: Use goa_object_skeleton_attach_printers() helper
https://bugzilla.gnome.org/show_bug.cgi?id=761510
src/goabackend/goagoogleprovider.c | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
index 27250df..ab7b89b 100644
--- a/src/goabackend/goagoogleprovider.c
+++ b/src/goabackend/goagoogleprovider.c
@@ -324,7 +324,6 @@ build_object (GoaProvider *provider,
GoaAccount *account;
GoaMail *mail;
gchar *uri_caldav;
- GoaPrinters *printers;
gchar *uri_drive;
gboolean ret;
gboolean mail_enabled;
@@ -339,7 +338,6 @@ build_object (GoaProvider *provider,
account = NULL;
mail = NULL;
- printers = NULL;
ret = FALSE;
/* Chain up */
@@ -417,22 +415,8 @@ build_object (GoaProvider *provider,
g_free (uri_drive);
/* Printers */
- printers = goa_object_get_printers (GOA_OBJECT (object));
printers_enabled = g_key_file_get_boolean (key_file, group, "PrintersEnabled", NULL);
-
- if (printers_enabled)
- {
- if (printers == NULL)
- {
- printers = goa_printers_skeleton_new ();
- goa_object_skeleton_set_printers (object, printers);
- }
- }
- else
- {
- if (printers != NULL)
- goa_object_skeleton_set_printers (object, NULL);
- }
+ goa_object_skeleton_attach_printers (object, printers_enabled);
if (just_added)
{
@@ -482,7 +466,6 @@ build_object (GoaProvider *provider,
ret = TRUE;
out:
- g_clear_object (&printers);
g_clear_object (&mail);
g_clear_object (&account);
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]