From b6b1a2148da93b45a278ce02c9ee9b87768ed074 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sat, 30 Jun 2001 05:23:31 +0000 Subject: Touch all of our EDestinations before we unref them, updating the last-use 2001-06-30 Jon Trowbridge * e-msg-composer-hdrs.c (set_recipients): Touch all of our EDestinations before we unref them, updating the last-use records in the addressbook. svn path=/trunk/; revision=10627 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer-hdrs.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index c2ed51b0fe..7c3f8d4d70 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2001-06-30 Jon Trowbridge + + * e-msg-composer-hdrs.c (set_recipients): Touch all of our + EDestinations before we unref them, updating the last-use records + in the addressbook. + 2001-06-29 Larry Ewing * e-msg-composer.c (e_msg_composer_show_sig_file): remove now diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 6d181d5ed4..836ca2f4f8 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -47,6 +47,7 @@ #include #include "e-msg-composer-hdrs.h" #include "mail/mail-config.h" +#include "addressbook/backend/ebook/e-book-util.h" #define SELECT_NAMES_OAFID "OAFIID:GNOME_Evolution_Addressbook_SelectNames" @@ -638,10 +639,13 @@ set_recipients (CamelMimeMessage *msg, GtkWidget *entry_widget, const gchar *typ bonobo_widget_get_property (BONOBO_WIDGET (entry_widget), "text", &string, NULL); destv = e_destination_importv (string); + + g_message ("importv: [%s]", string); if (destv) { dest_str = e_destination_get_address_textv (destv); + g_message ("destination is: %s", dest_str); if (dest_str) { addr = camel_internet_address_new (); @@ -657,8 +661,10 @@ set_recipients (CamelMimeMessage *msg, GtkWidget *entry_widget, const gchar *typ g_free (dest_str); } - for (i=0; destv[i]; ++i) + for (i=0; destv[i]; ++i) { + e_destination_touch (destv[i]); gtk_object_unref (GTK_OBJECT (destv[i])); + } g_free (destv); } -- cgit