From f966fe07757883ad5168a16daa2da39afbb388b3 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 4 Sep 2002 22:23:50 +0000 Subject: [ Fixes #29904 ] we need to activate either a contact list editor or 2002-09-04 Chris Toshok [ Fixes #29904 ] * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_activate_obj): we need to activate either a contact list editor or contact editor depending on if it's a list (this screams for a utility function.) svn path=/trunk/; revision=17980 --- addressbook/ChangeLog | 8 ++++++++ .../gui/component/select-names/e-select-names-text-model.c | 13 ++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index c1b4af086e..dca705bfef 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2002-09-04 Chris Toshok + + [ Fixes #29904 ] + * gui/component/select-names/e-select-names-text-model.c + (e_select_names_text_model_activate_obj): we need to activate + either a contact list editor or contact editor depending on if + it's a list (this screams for a utility function.) + 2002-09-04 Dan Winship * gui/component/addressbook-storage.c diff --git a/addressbook/gui/component/select-names/e-select-names-text-model.c b/addressbook/gui/component/select-names/e-select-names-text-model.c index 0a69137fa5..9c108868b9 100644 --- a/addressbook/gui/component/select-names/e-select-names-text-model.c +++ b/addressbook/gui/component/select-names/e-select-names-text-model.c @@ -760,7 +760,6 @@ static void e_select_names_text_model_activate_obj (ETextModel *model, gint n) { ESelectNamesModel *source = E_SELECT_NAMES_TEXT_MODEL (model)->source; - EContactEditor *contact_editor; ECard *card; gint i; @@ -771,8 +770,16 @@ e_select_names_text_model_activate_obj (ETextModel *model, gint n) g_return_if_fail (card != NULL); /* present read-only contact editor when someone double clicks from here */ - contact_editor = e_addressbook_show_contact_editor (e_card_get_book (card), card, FALSE, FALSE); - e_contact_editor_raise (contact_editor); + if (e_card_evolution_list (card)) { + EContactListEditor *ce; + ce = e_addressbook_show_contact_list_editor (e_card_get_book(card), card, FALSE, FALSE); + e_contact_list_editor_raise (ce); + } + else { + EContactEditor *ce; + ce = e_addressbook_show_contact_editor (e_card_get_book(card), card, FALSE, FALSE); + e_contact_editor_raise (ce); + } } -- cgit