aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing/e-contact-print-envelope.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/printing/e-contact-print-envelope.c')
-rw-r--r--addressbook/printing/e-contact-print-envelope.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/addressbook/printing/e-contact-print-envelope.c b/addressbook/printing/e-contact-print-envelope.c
index 43d40b81cb..4accea252e 100644
--- a/addressbook/printing/e-contact-print-envelope.c
+++ b/addressbook/printing/e-contact-print-envelope.c
@@ -219,3 +219,24 @@ e_contact_print_envelope_dialog_new(ECard *card)
"close", GTK_SIGNAL_FUNC(e_contact_print_envelope_close), NULL);
return dialog;
}
+
+/* FIXME: Print all the contacts selected. */
+GtkWidget *
+e_contact_print_envelope_list_dialog_new(GList *list)
+{
+ GtkWidget *dialog;
+ ECard *card;
+
+ if (list == NULL)
+ return NULL;
+
+ dialog = gnome_print_dialog_new("Print envelope", GNOME_PRINT_DIALOG_COPIES);
+
+ card = e_card_duplicate(list->data);
+ gtk_object_set_data(GTK_OBJECT(dialog), "card", card);
+ gtk_signal_connect(GTK_OBJECT(dialog),
+ "clicked", GTK_SIGNAL_FUNC(e_contact_print_envelope_button), NULL);
+ gtk_signal_connect(GTK_OBJECT(dialog),
+ "close", GTK_SIGNAL_FUNC(e_contact_print_envelope_close), NULL);
+ return dialog;
+}