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 | |
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')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-text-model.c | 13 |
2 files changed, 18 insertions, 3 deletions
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 <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.) + 2002-09-04 Dan Winship <danw@ximian.com> * 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); + } } |