aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-view.c
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/gui/widgets/e-addressbook-view.c
parentd99fd19df965c57878d55e7f5705ca5648604db0 (diff)
downloadgsoc2013-evolution-618515cd0beaed45af59994d84592b5d513bd979.tar.gz
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/gui/widgets/e-addressbook-view.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 3d081ab14c..d0d6984faf 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -417,6 +417,20 @@ save_as (GtkWidget *widget, CardAndBook *card_and_book)
}
static void
+send_as (GtkWidget *widget, CardAndBook *card_and_book)
+{
+ e_card_send(card_and_book->card, E_CARD_DISPOSITION_AS_ATTACHMENT);
+ card_and_book_free(card_and_book);
+}
+
+static void
+send_to (GtkWidget *widget, CardAndBook *card_and_book)
+{
+ e_card_send(card_and_book->card, E_CARD_DISPOSITION_AS_TO);
+ card_and_book_free(card_and_book);
+}
+
+static void
print (GtkWidget *widget, CardAndBook *card_and_book)
{
gtk_widget_show(e_contact_print_card_dialog_new(card_and_book->card));
@@ -451,11 +465,13 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA
CardAndBook *card_and_book;
EPopupMenu menu[] = {
- {"Save as VCard", NULL, GTK_SIGNAL_FUNC(save_as), 0},
- {"Print", NULL, GTK_SIGNAL_FUNC(print), 0},
- {"Print Envelope", NULL, GTK_SIGNAL_FUNC(print_envelope), 0},
- {"Delete", NULL, GTK_SIGNAL_FUNC(delete), 0},
- {NULL, NULL, NULL, 0}
+ {"Save as VCard", NULL, GTK_SIGNAL_FUNC(save_as), NULL, 0},
+ {"Send contact to other", NULL, GTK_SIGNAL_FUNC(send_as), NULL, 0},
+ {"Send message to contact", NULL, GTK_SIGNAL_FUNC(send_to), NULL, 0},
+ {"Print", NULL, GTK_SIGNAL_FUNC(print), NULL, 0},
+ {"Print Envelope", NULL, GTK_SIGNAL_FUNC(print_envelope), NULL, 0},
+ {"Delete", NULL, GTK_SIGNAL_FUNC(delete), NULL, 0},
+ {NULL, NULL, NULL, NULL, 0}
};
card_and_book = g_new(CardAndBook, 1);