[gnome-contacts] contact: Use our own store reference rather than the on in App



commit 93c9ae6f2e389c6cd0a13b637177c5bcde8261ef
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Jun 26 22:55:25 2012 +0200

    contact: Use our own store reference rather than the on in App
    
    Contact currently references App in a couple of places, which
    means the class depends on pretty much any other class. In order
    to reuse the Contact class in the shell search provider (which will
    be a separate executable), reduce the Contact class' dependencies.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679002

 src/contacts-contact.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 31c55cd..e821888 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -1165,7 +1165,7 @@ public class Contacts.Contact : GLib.Object  {
     if (this.non_linkable () || other.non_linkable ())
       return false;
 
-    if (!App.app.contacts_store.may_suggest_link (this, other))
+    if (!this.store.may_suggest_link (this, other))
       return false;
 
     /* Only connect main contacts with non-mainable contacts.



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