diff options
author | Chris Toshok <toshok@ximian.com> | 2003-03-12 14:46:38 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-03-12 14:46:38 +0800 |
commit | bdad58fc5f68ee7bcf42a2a6537b7d744abd16af (patch) | |
tree | 8d9eaf0ace1ff5c63425581b3bfb8ea87dee1299 /addressbook/gui | |
parent | e5b1a4903064d14bf421a9275ec4cdd85a7973a0 (diff) | |
download | gsoc2013-evolution-bdad58fc5f68ee7bcf42a2a6537b7d744abd16af.tar.gz gsoc2013-evolution-bdad58fc5f68ee7bcf42a2a6537b7d744abd16af.tar.zst gsoc2013-evolution-bdad58fc5f68ee7bcf42a2a6537b7d744abd16af.zip |
[ fixes bug #39507 ] new function, sync the models after we do a search.
2003-03-11 Chris Toshok <toshok@ximian.com>
[ fixes bug #39507 ]
* gui/component/select-names/e-select-names.c (search_result): new
function, sync the models after we do a search.
(addressbook_model_set_uri): connect to search_result.
svn path=/trunk/; revision=20260
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index ed8a3c3c45..51af18c78f 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -52,6 +52,8 @@ static void e_select_names_class_init (ESelectNamesClass *klass); static void e_select_names_dispose (GObject *object); static void update_query (GtkWidget *widget, ESelectNames *e_select_names); +static void sync_table_and_models (ESelectNamesModel *triggering_model, ESelectNames *esl); + extern EvolutionShellClient *global_shell_client; static GtkDialogClass *parent_class = NULL; @@ -112,6 +114,12 @@ GtkWidget *e_addressbook_create_ebook_table(char *name, char *string1, char *str GtkWidget *e_addressbook_create_folder_selector(char *name, char *string1, char *string2, int num1, int num2); static void +search_result (EAddressbookModel *model, EBookViewStatus status, ESelectNames *esn) +{ + sync_table_and_models (NULL, esn); +} + +static void set_book(EBook *book, EBookStatus status, ESelectNames *esn) { g_object_set(esn->model, @@ -143,6 +151,10 @@ addressbook_model_set_uri(ESelectNames *e_select_names, EAddressbookModel *model book = e_book_new(); + g_signal_connect (model, + "search_result", G_CALLBACK (search_result), + e_select_names); + g_object_ref(e_select_names); g_object_ref(model); addressbook_load_uri(book, book_uri, (EBookCallback) set_book, e_select_names); |