From 5ce3f210b969c3e0ab6020911a6bb4b887e46d0a Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 8 Jun 2004 22:11:48 +0000 Subject: new function. do the get_view in an idle handler. 2004-06-08 Chris Toshok * gui/widgets/e-addressbook-model.c (get_view_idle): new function. do the get_view in an idle handler. (eab_model_set_property): don't call get_view directly from any setter block. instead just add the idle handler (if it's not already added.) This keeps us from duplicating queries when both "book" and "query" are set using the same g_object_set. svn path=/trunk/; revision=26264 --- addressbook/gui/widgets/e-addressbook-model.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/gui/widgets/e-addressbook-model.h') diff --git a/addressbook/gui/widgets/e-addressbook-model.h b/addressbook/gui/widgets/e-addressbook-model.h index 64ce6c3845..e83477ff93 100644 --- a/addressbook/gui/widgets/e-addressbook-model.h +++ b/addressbook/gui/widgets/e-addressbook-model.h @@ -24,6 +24,8 @@ struct _EABModel { EBookQuery *query; EBookView *book_view; + int book_view_idle_id; + EContact **data; int data_count; int allocated_count; -- cgit v1.2.3