diff options
author | Chris Toshok <toshok@ximian.com> | 2002-09-05 06:23:50 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-09-05 06:23:50 +0800 |
commit | f966fe07757883ad5168a16daa2da39afbb388b3 (patch) | |
tree | 9f593a1e1445eefbe7233807e7cb46ee31cfd10d /addressbook/gui | |
parent | e724a9a9cfbc3a0c532d0781d5ee304dd724fddc (diff) | |
download | gsoc2013-evolution-f966fe07757883ad5168a16daa2da39afbb388b3.tar gsoc2013-evolution-f966fe07757883ad5168a16daa2da39afbb388b3.tar.gz gsoc2013-evolution-f966fe07757883ad5168a16daa2da39afbb388b3.tar.bz2 gsoc2013-evolution-f966fe07757883ad5168a16daa2da39afbb388b3.tar.lz gsoc2013-evolution-f966fe07757883ad5168a16daa2da39afbb388b3.tar.xz gsoc2013-evolution-f966fe07757883ad5168a16daa2da39afbb388b3.tar.zst gsoc2013-evolution-f966fe07757883ad5168a16daa2da39afbb388b3.zip |
[ Fixes #29904 ] we need to activate either a contact list editor or
2002-09-04 Chris Toshok <toshok@ximian.com>
[ 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
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-text-model.c | 13 |
1 files changed, 10 insertions, 3 deletions
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); + } } |