From ac26ccfbdc8390cce592621407a26457c05f90b1 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 6 Nov 2000 01:06:09 +0000 Subject: Add menus items to the envelope printing stuff. 2000-11-05 Christopher James Lahey * contact-editor/e-contact-editor.c, gui/widgets/e-addressbook-view.c, gui/widgets/e-minicard.c: Add menus items to the envelope printing stuff. * gui/component/addressbook.c: Hook up the search menu. * gui/widgets/e-addressbook-search.c, gui/widgets/e-addressbook-search.h: Add the search menu. * printing/Makefile.am: Add e-contact-print-envelope.c and e-contact-print-envelope.h. * printing/e-contact-print-envelope.c, printing/e-contact-print-envelope.h: Added envelope printing. svn path=/trunk/; revision=6408 --- addressbook/gui/widgets/e-addressbook-view.c | 9 +++++++++ 1 file changed, 9 insertions(+) (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 186cd7ce31..3d081ab14c 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -37,6 +37,7 @@ #include "e-contact-editor.h" #include "e-contact-save-as.h" #include "addressbook/printing/e-contact-print.h" +#include "addressbook/printing/e-contact-print-envelope.h" #include "e-card-simple.h" #include "e-card.h" #include "e-book.h" @@ -422,6 +423,13 @@ print (GtkWidget *widget, CardAndBook *card_and_book) card_and_book_free(card_and_book); } +static void +print_envelope (GtkWidget *widget, CardAndBook *card_and_book) +{ + gtk_widget_show(e_contact_print_envelope_dialog_new(card_and_book->card)); + card_and_book_free(card_and_book); +} + static void delete (GtkWidget *widget, CardAndBook *card_and_book) { @@ -445,6 +453,7 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA 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} }; -- cgit v1.2.3