diff options
author | Chris Toshok <toshok@ximian.com> | 2004-03-31 00:07:50 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-03-31 00:07:50 +0800 |
commit | 49827539cbca11048eac4dc19082acd8e9c8974a (patch) | |
tree | e9fba5a715ca2fd86c96651c3fcb01a62912685d | |
parent | 42a08a1b798ab23c5bc76679cbb319df271cdac6 (diff) | |
download | gsoc2013-evolution-49827539cbca11048eac4dc19082acd8e9c8974a.tar gsoc2013-evolution-49827539cbca11048eac4dc19082acd8e9c8974a.tar.gz gsoc2013-evolution-49827539cbca11048eac4dc19082acd8e9c8974a.tar.bz2 gsoc2013-evolution-49827539cbca11048eac4dc19082acd8e9c8974a.tar.lz gsoc2013-evolution-49827539cbca11048eac4dc19082acd8e9c8974a.tar.xz gsoc2013-evolution-49827539cbca11048eac4dc19082acd8e9c8974a.tar.zst gsoc2013-evolution-49827539cbca11048eac4dc19082acd8e9c8974a.zip |
[ gui part of the fix required for #48665 ]
2004-03-30 Chris Toshok <toshok@ximian.com>
[ gui part of the fix required for #48665 ]
* gui/widgets/e-addressbook-model.c (get_view): pass the source's
"limit" property (if it exists) to e_book_async_get_book_view.
svn path=/trunk/; revision=25242
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 14 |
2 files changed, 19 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 840b9da6cf..db0fcd13a2 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2004-03-30 Chris Toshok <toshok@ximian.com> + + [ gui part of the fix required for #48665 ] + + * gui/widgets/e-addressbook-model.c (get_view): pass the source's + "limit" property (if it exists) to e_book_async_get_book_view. + 2004-03-29 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-component.c diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 725c7b687d..9630c83ff8 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -490,6 +490,16 @@ get_view (EABModel *model) gboolean success; if (model->book && model->query) { + ESource *source; + const char *limit_str; + int limit = -1; + + source = e_book_get_source (model->book); + + limit_str = e_source_get_property (source, "limit"); + if (limit_str && *limit_str) + limit = atoi (limit_str); + remove_book_view(model); free_data (model); @@ -497,7 +507,7 @@ get_view (EABModel *model) model->first_get_view = FALSE; if (e_book_check_static_capability (model->book, "do-initial-query")) { - success = e_book_async_get_book_view (model->book, model->query, NULL, -1, book_view_loaded, model); + success = e_book_async_get_book_view (model->book, model->query, NULL, limit, book_view_loaded, model); } else { g_signal_emit (model, eab_model_signals [MODEL_CHANGED], 0); @@ -507,7 +517,7 @@ get_view (EABModel *model) } } else - success = e_book_async_get_book_view (model->book, model->query, NULL, -1, book_view_loaded, model); + success = e_book_async_get_book_view (model->book, model->query, NULL, limit, book_view_loaded, model); } } |