aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-view.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-11-06 09:06:09 +0800
committerChris Lahey <clahey@src.gnome.org>2000-11-06 09:06:09 +0800
commitac26ccfbdc8390cce592621407a26457c05f90b1 (patch)
tree3b56e03a6e688e43ddbe5c0416daa96520b48e87 /addressbook/gui/widgets/e-addressbook-view.c
parent9ca299b427db9febb37208a33d238463f7a9b3bd (diff)
downloadgsoc2013-evolution-ac26ccfbdc8390cce592621407a26457c05f90b1.tar
gsoc2013-evolution-ac26ccfbdc8390cce592621407a26457c05f90b1.tar.gz
gsoc2013-evolution-ac26ccfbdc8390cce592621407a26457c05f90b1.tar.bz2
gsoc2013-evolution-ac26ccfbdc8390cce592621407a26457c05f90b1.tar.lz
gsoc2013-evolution-ac26ccfbdc8390cce592621407a26457c05f90b1.tar.xz
gsoc2013-evolution-ac26ccfbdc8390cce592621407a26457c05f90b1.tar.zst
gsoc2013-evolution-ac26ccfbdc8390cce592621407a26457c05f90b1.zip
Add menus items to the envelope printing stuff.
2000-11-05 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-view.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c9
1 files changed, 9 insertions, 0 deletions
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"
@@ -423,6 +424,13 @@ print (GtkWidget *widget, CardAndBook *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)
{
if (e_contact_editor_confirm_delete(GTK_WINDOW(gtk_widget_get_toplevel(card_and_book->widget)))) {
@@ -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}
};