aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/contact-editor
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-11-12 05:29:07 +0800
committerChris Lahey <clahey@src.gnome.org>2000-11-12 05:29:07 +0800
commit618515cd0beaed45af59994d84592b5d513bd979 (patch)
tree2f90bf2897128f9e704b5927bba8bd86bd3bc2ab /addressbook/contact-editor
parentd99fd19df965c57878d55e7f5705ca5648604db0 (diff)
downloadgsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.gz
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.bz2
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.lz
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.xz
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.zst
gsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.zip
Link in composer bonobo code.
2000-11-11 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/Makefile.am: Link in composer bonobo code. * backend/ebook/e-card.c, backend/ebook/e-card.h: Added code to send mail to an ECard or send an ECard as a VCard attachment. * contact-editor/e-contact-editor.c: Add verbs to send the contact as a VCard or send mail to the contact. * gui/search/e-addressbook-search-dialog.c: Removed some unused variables. * gui/widgets/e-addressbook-view.c, gui/widgets/e-minicard.c: Added menu items to send the contact as a VCard or send mail to the contact. svn path=/trunk/; revision=6543
Diffstat (limited to 'addressbook/contact-editor')
-rw-r--r--addressbook/contact-editor/e-contact-editor.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/addressbook/contact-editor/e-contact-editor.c b/addressbook/contact-editor/e-contact-editor.c
index c4e8ed8640..9e1afacb7b 100644
--- a/addressbook/contact-editor/e-contact-editor.c
+++ b/addressbook/contact-editor/e-contact-editor.c
@@ -662,6 +662,36 @@ file_save_as_cb (GtkWidget *widget, gpointer data)
e_contact_save_as("Save as VCard", card);
}
+static void
+file_send_as_cb (GtkWidget *widget, gpointer data)
+{
+ EContactEditor *ce;
+ ECard *card;
+
+ ce = E_CONTACT_EDITOR (data);
+
+ extract_info (ce);
+ e_card_simple_sync_card (ce->simple);
+
+ card = ce->card;
+ e_card_send(card, E_CARD_DISPOSITION_AS_ATTACHMENT);
+}
+
+static void
+file_send_to_cb (GtkWidget *widget, gpointer data)
+{
+ EContactEditor *ce;
+ ECard *card;
+
+ ce = E_CONTACT_EDITOR (data);
+
+ extract_info (ce);
+ e_card_simple_sync_card (ce->simple);
+
+ card = ce->card;
+ e_card_send(card, E_CARD_DISPOSITION_AS_TO);
+}
+
gboolean
e_contact_editor_confirm_delete(GtkWindow *parent)
{
@@ -744,6 +774,8 @@ BonoboUIVerb verbs [] = {
BONOBO_UI_UNSAFE_VERB ("ContactEditorSave", file_save_cb),
BONOBO_UI_UNSAFE_VERB ("ContactEditorSaveAs", file_save_as_cb),
BONOBO_UI_UNSAFE_VERB ("ContactEditorSaveClose", tb_save_and_close_cb),
+ BONOBO_UI_UNSAFE_VERB ("ContactEditorSendAs", file_send_as_cb),
+ BONOBO_UI_UNSAFE_VERB ("ContactEditorSendTo", file_send_to_cb),
BONOBO_UI_UNSAFE_VERB ("ContactEditorDelete", delete_cb),
BONOBO_UI_UNSAFE_VERB ("ContactEditorPrint", print_cb),
BONOBO_UI_UNSAFE_VERB ("ContactEditorPrintEnvelope", print_envelope_cb),