aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-view.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-01-18 23:37:09 +0800
committerChris Lahey <clahey@src.gnome.org>2002-01-18 23:37:09 +0800
commita30eed771c00ccde2cd7a32c3f0a28057f247f84 (patch)
tree8349ad2f4b5f13af1cc188ee7d9771374a17d5cf /addressbook/gui/widgets/e-addressbook-view.c
parent9380c68a1a8f6232a1faa0c169eee6b6c4ae889f (diff)
downloadgsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar
gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar.gz
gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar.bz2
gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar.lz
gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar.xz
gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar.zst
gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.zip
From addressbook/ChangeLog:
2002-01-18 Christopher James Lahey <clahey@ximian.com> * 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 <clahey@ximian.com> * evolution-addressbook.xml: Added File->Open which calls the ContactsView command. svn path=/trunk/; revision=15355
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-view.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c21
1 files changed, 18 insertions, 3 deletions
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 <gal/util/e-unicode-i18n.h>
#include <gal/unicode/gunicode.h>
#include <libgnomeui/gnome-dialog-util.h>
+#include <libgnomeui/gnome-stock.h>
#include <libgnomeprint/gnome-print.h>
#include <libgnomeprint/gnome-print-dialog.h>
@@ -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)
{