diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-05-08 12:58:41 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-05-08 12:58:41 +0800 |
commit | 3c0c62e2958b5dccca490908145c534022a85563 (patch) | |
tree | 421d5332f2518c99cfd6ac6dd4aa325f1a0a1a84 /addressbook/printing | |
parent | 5d4895eb431adfbf2c7895d4257fa20a28f474f9 (diff) | |
download | gsoc2013-evolution-3c0c62e2958b5dccca490908145c534022a85563.tar gsoc2013-evolution-3c0c62e2958b5dccca490908145c534022a85563.tar.gz gsoc2013-evolution-3c0c62e2958b5dccca490908145c534022a85563.tar.bz2 gsoc2013-evolution-3c0c62e2958b5dccca490908145c534022a85563.tar.lz gsoc2013-evolution-3c0c62e2958b5dccca490908145c534022a85563.tar.xz gsoc2013-evolution-3c0c62e2958b5dccca490908145c534022a85563.tar.zst gsoc2013-evolution-3c0c62e2958b5dccca490908145c534022a85563.zip |
Removed e-card-pairs.h since we're not using it.
2001-05-08 Christopher James Lahey <clahey@ximian.com>
* backend/ebook/Makefile.am (libebookinclude_HEADERS): Removed
e-card-pairs.h since we're not using it.
* backend/ebook/e-book-view.c (e_book_view_check_listener_queue):
Added break; to default: case here.
* backend/ebook/e-card-simple.c, backend/ebook/e-card-simple.h:
Added changed variable so as to avoid sync_card when possible.
(e_card_simple_destroy): Free all the data here properly.
(e_card_simple_get_arg): Slight simplification here.
(fill_in_info, e_card_simple_arbitrary_foreach,
e_card_simple_get_arbitrary): Call e_card_free_empty_lists here to
save a bit of memory.
* backend/ebook/e-card.c, backend/ebook/e-card.h: Fixed up
includes a bit.
(e_card_list_get_vcard, e_card_list_send): Added these functions
for acting on a group of cards.
(parse_org): Cleaned up this function a bit.
(e_card_free_empty_lists): Added this function to delete
unnecessary ELists and save a bit of memory.
(e_v_object_get_child_value): Made this return NULL if not found
instead of g_strdup("").
* contact-editor/e-contact-save-as.c,
contact-editor/e-contact-save-as.h (e_contact_list_save_as): Added
this function to save multiple contacts.
* gui/widgets/Makefile.am: Commented out reflow test.
(libeminicard_a_SOURCES): Added e-minicard-view-model.c and
e-minicard-view-model.h.
* gui/widgets/e-minicard-view-model.c,
gui/widgets/e-minicard-view-model.h: Model for use in
EMinicardView.
* gui/widgets/e-minicard-view.c, gui/widgets/e-minicard-view.h:
Reworked this to use the new EReflow stuff.
* gui/widgets/e-minicard.c (e_minicard_event): Doesn't handle
right click menus now. Emits a signal on the parent canvas item
instead.
* printing/e-contact-print-envelope.c,
printing/e-contact-print-envelope.h
(e_contact_print_envelope_list_dialog_new): Added this function to
print multiple envelopes (only prints first for now.)
* printing/e-contact-print.c, printing/e-contact-print.h
(e_contact_print_card_list_dialog_new): Added this function to
print multiple cards. Only prints the first for now.
svn path=/trunk/; revision=9711
Diffstat (limited to 'addressbook/printing')
-rw-r--r-- | addressbook/printing/e-contact-print-envelope.c | 21 | ||||
-rw-r--r-- | addressbook/printing/e-contact-print-envelope.h | 1 | ||||
-rw-r--r-- | addressbook/printing/e-contact-print.c | 22 | ||||
-rw-r--r-- | addressbook/printing/e-contact-print.h | 1 |
4 files changed, 45 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; +} diff --git a/addressbook/printing/e-contact-print-envelope.h b/addressbook/printing/e-contact-print-envelope.h index f3f3219af1..b2fa51f28e 100644 --- a/addressbook/printing/e-contact-print-envelope.h +++ b/addressbook/printing/e-contact-print-envelope.h @@ -27,5 +27,6 @@ #include "e-contact-print-types.h" GtkWidget *e_contact_print_envelope_dialog_new(ECard *card); +GtkWidget *e_contact_print_envelope_list_dialog_new(GList *list); #endif /* E_CONTACT_PRINT_ENVELOPE_H */ diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c index 180f2625c3..f948101ce0 100644 --- a/addressbook/printing/e-contact-print.c +++ b/addressbook/printing/e-contact-print.c @@ -1117,3 +1117,25 @@ e_contact_print_card_dialog_new(ECard *card) "close", GTK_SIGNAL_FUNC(e_contact_print_close), NULL); return dialog; } + +/* FIXME: Print all the contacts selected. */ +GtkWidget * +e_contact_print_card_list_dialog_new(GList *list) +{ + GtkWidget *dialog; + ECard *card; + + if (list == NULL) + return NULL; + + dialog = gnome_print_dialog_new("Print card", GNOME_PRINT_DIALOG_COPIES); + + card = e_card_duplicate(list->data); + gtk_object_set_data(GTK_OBJECT(dialog), "card", card); + gtk_object_set_data(GTK_OBJECT(dialog), "uses_book", (void *) 0); + gtk_signal_connect(GTK_OBJECT(dialog), + "clicked", GTK_SIGNAL_FUNC(e_contact_print_button), NULL); + gtk_signal_connect(GTK_OBJECT(dialog), + "close", GTK_SIGNAL_FUNC(e_contact_print_close), NULL); + return dialog; +} diff --git a/addressbook/printing/e-contact-print.h b/addressbook/printing/e-contact-print.h index bc4c312bb0..240d3b5d2d 100644 --- a/addressbook/printing/e-contact-print.h +++ b/addressbook/printing/e-contact-print.h @@ -28,5 +28,6 @@ GtkWidget *e_contact_print_dialog_new(EBook *book, char *query); GtkWidget *e_contact_print_card_dialog_new(ECard *card); +GtkWidget *e_contact_print_card_list_dialog_new(GList *list); #endif /* E_CONTACT_PRINT_H */ |