diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-06-30 13:23:31 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-06-30 13:23:31 +0800 |
commit | b6b1a2148da93b45a278ce02c9ee9b87768ed074 (patch) | |
tree | b01ac5ef144ba7b49b1b331eb2a99da4d98360ee /composer/e-msg-composer-hdrs.c | |
parent | 7c5dd95cd7aefa8243edac3c67bf1910fc905c4e (diff) | |
download | gsoc2013-evolution-b6b1a2148da93b45a278ce02c9ee9b87768ed074.tar gsoc2013-evolution-b6b1a2148da93b45a278ce02c9ee9b87768ed074.tar.gz gsoc2013-evolution-b6b1a2148da93b45a278ce02c9ee9b87768ed074.tar.bz2 gsoc2013-evolution-b6b1a2148da93b45a278ce02c9ee9b87768ed074.tar.lz gsoc2013-evolution-b6b1a2148da93b45a278ce02c9ee9b87768ed074.tar.xz gsoc2013-evolution-b6b1a2148da93b45a278ce02c9ee9b87768ed074.tar.zst gsoc2013-evolution-b6b1a2148da93b45a278ce02c9ee9b87768ed074.zip |
Touch all of our EDestinations before we unref them, updating the last-use
2001-06-30 Jon Trowbridge <trow@ximian.com>
* 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
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <e-destination.h> #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); } |