aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-09-09 05:06:49 +0800
committerChris Toshok <toshok@src.gnome.org>2001-09-09 05:06:49 +0800
commitbdbd430bce5d26e48bb5f29aed526fe6b1031dfd (patch)
tree504cb66ac842825d753e02500e322d58f63dc048
parent0faa76f9b2e4bcbe106bf04dfa30c915c4a737da (diff)
downloadgsoc2013-evolution-bdbd430bce5d26e48bb5f29aed526fe6b1031dfd.tar
gsoc2013-evolution-bdbd430bce5d26e48bb5f29aed526fe6b1031dfd.tar.gz
gsoc2013-evolution-bdbd430bce5d26e48bb5f29aed526fe6b1031dfd.tar.bz2
gsoc2013-evolution-bdbd430bce5d26e48bb5f29aed526fe6b1031dfd.tar.lz
gsoc2013-evolution-bdbd430bce5d26e48bb5f29aed526fe6b1031dfd.tar.xz
gsoc2013-evolution-bdbd430bce5d26e48bb5f29aed526fe6b1031dfd.tar.zst
gsoc2013-evolution-bdbd430bce5d26e48bb5f29aed526fe6b1031dfd.zip
(make_contact_editor_cb): show the right contact editor (the list editor
2001-09-08 Chris Toshok <toshok@ximian.com> (make_contact_editor_cb): show the right contact editor (the list editor for list cards). svn path=/trunk/; revision=12707
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/select-names/e-select-names-popup.c13
2 files changed, 15 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index c1b470ac0c..0ea44d6521 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2001-09-08 Chris Toshok <toshok@ximian.com>
+ (make_contact_editor_cb): show the right contact editor (the list
+ editor for list cards).
+
+2001-09-08 Chris Toshok <toshok@ximian.com>
+
* gui/component/select-names/e-select-names-popup.c
(popup_menu_card): do the EDestination xml magic on email
addresses we put in the popup.
diff --git a/addressbook/gui/component/select-names/e-select-names-popup.c b/addressbook/gui/component/select-names/e-select-names-popup.c
index ef73d79e8a..69754f1976 100644
--- a/addressbook/gui/component/select-names/e-select-names-popup.c
+++ b/addressbook/gui/component/select-names/e-select-names-popup.c
@@ -99,12 +99,19 @@ make_contact_editor_cb (EBook *book, gpointer user_data)
{
if (book) {
EDestination *dest = E_DESTINATION (user_data);
- EContactEditor *ce;
ECard *card;
card = (ECard *) e_destination_get_card (dest);
- ce = e_addressbook_show_contact_editor (book, card, FALSE, TRUE);
- e_contact_editor_raise (ce);
+ if (e_card_evolution_list (card)) {
+ EContactListEditor *ce;
+ ce = e_addressbook_show_contact_list_editor (book, card, FALSE, TRUE);
+ e_contact_list_editor_raise (ce);
+ }
+ else {
+ EContactEditor *ce;
+ ce = e_addressbook_show_contact_editor (book, card, FALSE, TRUE);
+ e_contact_editor_raise (ce);
+ }
gtk_object_unref (GTK_OBJECT (dest));
}
}