diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-10-28 04:25:52 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-10-28 04:25:52 +0800 |
commit | b41272695349bff112416423960467d94bd0f82f (patch) | |
tree | 256d304610fc2af31ea6ec5ab9a9b1e67b5fc096 | |
parent | 2fa613f46ab0af63a92fe0878f000d2e78684136 (diff) | |
download | gsoc2013-evolution-b41272695349bff112416423960467d94bd0f82f.tar gsoc2013-evolution-b41272695349bff112416423960467d94bd0f82f.tar.gz gsoc2013-evolution-b41272695349bff112416423960467d94bd0f82f.tar.bz2 gsoc2013-evolution-b41272695349bff112416423960467d94bd0f82f.tar.lz gsoc2013-evolution-b41272695349bff112416423960467d94bd0f82f.tar.xz gsoc2013-evolution-b41272695349bff112416423960467d94bd0f82f.tar.zst gsoc2013-evolution-b41272695349bff112416423960467d94bd0f82f.zip |
Doh! We should be sorting our contacts so that the most frequently used
2001-10-27 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-completion.c
(make_match): Doh! We should be sorting our contacts so that the
most frequently used ones are at the top of the list, not the
bottom.
svn path=/trunk/; revision=14223
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-completion.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 03385a89cf..ad1061645d 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,4 +1,9 @@ -2001-10-27 Jon Trowbridge <trow@gnu.org> +2001-10-27 Jon Trowbridge <trow@ximian.com> + + * gui/component/select-names/e-select-names-completion.c + (make_match): Doh! We should be sorting our contacts so that the + most frequently used ones are at the top of the list, not the + bottom. * backend/pas/pas-book.c (pas_book_check_queue): That should be a bonobo_object_unref, not a gtk_object_unref. diff --git a/addressbook/gui/component/select-names/e-select-names-completion.c b/addressbook/gui/component/select-names/e-select-names-completion.c index 9a6ce6871a..2e2cd03be1 100644 --- a/addressbook/gui/component/select-names/e-select-names-completion.c +++ b/addressbook/gui/component/select-names/e-select-names-completion.c @@ -110,7 +110,10 @@ make_match (EDestination *dest, const gchar *menu_form, double score) match = e_completion_match_new (e_destination_get_name (dest), menu_form, score); e_completion_match_set_text (match, e_destination_get_name (dest), menu_form); - match->sort_major = card ? floor (e_card_get_use_score (card)) : 0; + + /* Since we sort low to high, we negate so that larger use scores will come first */ + match->sort_major = card ? -floor (e_card_get_use_score (card)) : 0; + match->sort_minor = e_destination_get_email_num (dest); match->user_data = dest; |