From ba58be670e008ff3c4e2f4222fc782bb114f7cba Mon Sep 17 00:00:00 2001 From: Jesse Pavel Date: Tue, 7 Nov 2000 22:10:15 +0000 Subject: (on_object_requested): passed the user's default email address to the iTip control. svn path=/trunk/; revision=6488 --- mail/ChangeLog | 4 +++- mail/mail-display.c | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index b82b909a12..080a22efe8 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -2,7 +2,9 @@ * mail-display.c: (pixmap_press): modified some of the EPopupMenu structures to account for differences in the popup menu API (as - informed by Jeff.) + informed by Jeff. + (on_object_requested): passed the user's default email address + to the iTip control. 2000-11-07 Ettore Perazzoli diff --git a/mail/mail-display.c b/mail/mail-display.c index d9da7e2a9a..35f6b51e96 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -18,6 +18,7 @@ #include #include #include "mail-display.h" +#include "mail-config.h" #include "mail.h" #include @@ -555,6 +556,11 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data) to pass a bunch of useful things to all embedded controls. */ const CamelInternetAddress *from; char *from_address; + MailConfigIdentity *id; + + id = mail_config_get_default_identity (); + + g_assert (id != NULL); CORBA_exception_init (&ev); @@ -562,6 +568,8 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data) from_address = camel_address_encode((CamelAddress *)from); bonobo_property_bag_client_set_value_string (prop_bag, "from_address", from_address, &ev); + bonobo_property_bag_client_set_value_string (prop_bag, "my_address", + id->address, &ev); g_free(from_address); CORBA_exception_free (&ev); } -- cgit v1.2.3