diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-01-24 13:59:25 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-01-24 15:15:39 +0100 |
commit | e291633fb8f94334f5f0efc64f1530bd301662a4 (patch) | |
tree | 3da6cad83086fa4c4d714e97d23bc8a731f1bd48 /src | |
parent | b70a7ba8a573a52498a2202192bea7cfd5c81bea (diff) | |
download | gnome-contacts-e291633fb8f94334f5f0efc64f1530bd301662a4.tar.gz |
Show non-other google personas before others
Diffstat (limited to 'src')
-rw-r--r-- | src/contacts-contact.vala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala index 657b785..334ca08 100644 --- a/src/contacts-contact.vala +++ b/src/contacts-contact.vala @@ -624,8 +624,17 @@ public class Contacts.Contact : GLib.Object { var store_a = persona_a.store; var store_b = persona_b.store; - if (store_a == store_b) + if (store_a == store_b) { + if (persona_is_google (persona_a)) { + /* Non-other google personas rank before others */ + if (persona_is_google_other (persona_a) && !persona_is_google_other (persona_b)) + return 1; + if (!persona_is_google_other (persona_a) && persona_is_google_other (persona_b)) + return -1; + } + return 0; + } if (store_a.is_primary_store && store_b.is_primary_store) return 0; |