aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-display.c8
2 files changed, 11 insertions, 1 deletions
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 <ettore@helixcode.com>
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 <gal/util/e-util.h>
#include <gal/widgets/e-popup-menu.h>
#include "mail-display.h"
+#include "mail-config.h"
#include "mail.h"
#include <bonobo.h>
@@ -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);
}