[folks: 5/10] Fix items noted in bug https://bugzilla.gnome.org/show_bug.cgi?id=675121 comments.



commit 1d50d11529edc78e359359ecb10b4226b338daf7
Author: Jeremy Whiting <jpwhiting kde org>
Date:   Mon Jun 11 09:49:09 2012 -0600

    Fix items noted in bug https://bugzilla.gnome.org/show_bug.cgi?id=675121 comments.

 backends/eds/eds-backend.vala            |    2 +-
 backends/eds/lib/edsf-persona-store.vala |   12 ++++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/backends/eds/eds-backend.vala b/backends/eds/eds-backend.vala
index f6e379e..bc1d4b1 100644
--- a/backends/eds/eds-backend.vala
+++ b/backends/eds/eds-backend.vala
@@ -119,7 +119,7 @@ public class Folks.Backends.Eds.Backend : Folks.Backend
                   this._ab_source_list_changed_cb);
               this._ab_sources.source_enabled.connect (
                   this._ab_source_list_changed_cb);
-              this._ab_source_list_changed_cb ( );
+              this._ab_source_list_changed_cb ();
 
               this._is_prepared = true;
               this.notify_property ("is-prepared");
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala
index eca8c8e..1a2eb30 100644
--- a/backends/eds/lib/edsf-persona-store.vala
+++ b/backends/eds/lib/edsf-persona-store.vala
@@ -2191,10 +2191,12 @@ public class Edsf.PersonaStore : Folks.PersonaStore
     {
       if (this.source.has_extension (SOURCE_EXTENSION_ADDRESS_BOOK))
         {
-          var extension = (E.SourceAddressBook) this._source_registry.find_extension (this.source, SOURCE_EXTENSION_ADDRESS_BOOK);
+          var extension = (E.SourceAddressBook)
+                          this._source_registry.find_extension (
+                            this.source, SOURCE_EXTENSION_ADDRESS_BOOK);
 
           var backend_name = ((!) extension).get_backend_name ();
-          /* base_uri should be google:// for Google Contacts address books */
+          /* backend name should be google for Google Contacts address books */
           if (backend_name.has_prefix ("google"))
             {
               return true;
@@ -2210,7 +2212,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
        * so we can assert that the source list is non-null. */
       assert (this._source_registry != null);
 
-      E.Source? needle = ((!) this._source_registry).ref_source(this.id);
+      E.Source? needle = ((!) this._source_registry).ref_source (this.id);
       if (needle != null && needle.has_extension (SOURCE_EXTENSION_ADDRESS_BOOK))
         {
           /* We've found ourself. */
@@ -2259,7 +2261,9 @@ public class Edsf.PersonaStore : Folks.PersonaStore
 
       if (this.source.has_extension (SOURCE_EXTENSION_ADDRESS_BOOK))
         {
-          var extension = (E.SourceAddressBook) this._source_registry.find_extension (this.source, SOURCE_EXTENSION_ADDRESS_BOOK);
+          var extension = (E.SourceAddressBook)
+                          this._source_registry.find_extension (
+                            this.source, SOURCE_EXTENSION_ADDRESS_BOOK);
 
           var backend_name = ((!) extension).get_backend_name ();
           /* base_uri should be ldap:// for LDAP based address books */



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