aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c14
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);
}
}