[gnome-documents] Access Account fields directly, not through getter functions



commit f8060c144fa2781351bf98b68c80c97730fe4731
Author: Michel Alexandre Salim <salimma fedoraproject org>
Date:   Sat Sep 3 12:26:56 2011 +0200

    Access Account fields directly, not through getter functions
    
    Per David Zeuthen
    (https://bugzilla.redhat.com/show_bug.cgi?id=735341#c2):
    
    gdbus-codegen(1) now uses (skip) annotation on generated C property
    getters - it is better, and thread-safe, to access the GObject property
    directly via e.g. account_id
    
    Signed-off-by: Michel Alexandre Salim <salimma fedoraproject org>

 src/sources.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/sources.js b/src/sources.js
index 629ff35..f703cd1 100644
--- a/src/sources.js
+++ b/src/sources.js
@@ -48,8 +48,8 @@ Source.prototype = {
             this.object = params.object;
 
             let account = this.object.get_account();
-            this.id = account.get_id();
-            this.name = account.get_provider_name();
+            this.id = account.id;
+            this.name = account.provider_name;
         } else {
             this.id = params.id;
             this.name = params.name;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]