From a30eed771c00ccde2cd7a32c3f0a28057f247f84 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 18 Jan 2002 15:37:09 +0000 Subject: From addressbook/ChangeLog: 2002-01-18 Christopher James Lahey * gui/component/addressbook.c (view_contact_cb): New verb to open a bunch of cards. * gui/widgets/e-addressbook-reflow-adapter.c (open_card): Call e_addressbook_show_multiple_cards instead of doing this ourselves. * gui/widgets/e-addressbook-util.c, gui/widgets/e-addressbook-util.h (e_addressbook_show_multiple_cards): Added this function to show a bunch of cards, including a dialog if lots of windows are going to appear. * gui/widgets/e-addressbook-view.c (e_addressbook_view_view, e_addressbook_view_can_view): e_addressbook_view_view calls e_addressbook_show_multiple_cards on the appropriate list of cards. From ui/ChangeLog: 2002-01-18 Christopher James Lahey * evolution-addressbook.xml: Added File->Open which calls the ContactsView command. svn path=/trunk/; revision=15355 --- addressbook/gui/widgets/e-addressbook-view.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/widgets/e-addressbook-view.c') diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index a421400f3c..74e804f767 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -1513,7 +1514,15 @@ e_addressbook_view_save_as (EAddressbookView *view) GList *list = get_selected_cards (view); if (list) e_contact_list_save_as (_("Save as VCard"), list); - g_list_free (list); + e_free_object_list(list); +} + +void +e_addressbook_view_view (EAddressbookView *view) +{ + GList *list = get_selected_cards (view); + e_addressbook_show_multiple_cards (view->book, list, view->editable); + e_free_object_list(list); } void @@ -1522,7 +1531,7 @@ e_addressbook_view_send (EAddressbookView *view) GList *list = get_selected_cards (view); if (list) e_card_list_send (list, E_CARD_DISPOSITION_AS_ATTACHMENT); - g_list_free (list); + e_free_object_list(list); } void @@ -1531,7 +1540,7 @@ e_addressbook_view_send_to (EAddressbookView *view) GList *list = get_selected_cards (view); if (list) e_card_list_send (list, E_CARD_DISPOSITION_AS_TO); - g_list_free (list); + e_free_object_list(list); } void @@ -1612,6 +1621,12 @@ e_addressbook_view_can_save_as (EAddressbookView *view) return view ? e_addressbook_view_selection_nonempty (view) : FALSE; } +gboolean +e_addressbook_view_can_view (EAddressbookView *view) +{ + return view ? e_addressbook_view_selection_nonempty (view) : FALSE; +} + gboolean e_addressbook_view_can_send (EAddressbookView *view) { -- cgit v1.2.3