aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-09-20 04:18:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-09-20 04:18:55 +0800
commitdea1ec84a83d2517ba9651cf80f23e91d7b919be (patch)
tree93cde5ab9627c4f9eedc60e7417cbc1b90a32be5
parent5f1b22f46d1a85ce05923835324a49cf076ef93f (diff)
downloadgsoc2013-evolution-dea1ec84a83d2517ba9651cf80f23e91d7b919be.tar.gz
gsoc2013-evolution-dea1ec84a83d2517ba9651cf80f23e91d7b919be.tar.zst
gsoc2013-evolution-dea1ec84a83d2517ba9651cf80f23e91d7b919be.zip
Set the window title to be that of the message subject. Fixes bug #48617.
2003-09-19 Jeffrey Stedfast <fejj@ximian.com> * em-message-browser.c (emmb_set_message): Set the window title to be that of the message subject. Fixes bug #48617. svn path=/trunk/; revision=22629
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-message-browser.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 5be75e2f93..d18667cb82 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2003-09-19 Jeffrey Stedfast <fejj@ximian.com>
+ * em-message-browser.c (emmb_set_message): Set the window title to
+ be that of the message subject. Fixes bug #48617.
+
+2003-09-19 Jeffrey Stedfast <fejj@ximian.com>
+
Fix for bug #48618.
* em-folder-view.c (emfv_list_message_selected): See if we have
diff --git a/mail/em-message-browser.c b/mail/em-message-browser.c
index 503ebef9e5..68636a2d37 100644
--- a/mail/em-message-browser.c
+++ b/mail/em-message-browser.c
@@ -155,8 +155,15 @@ GtkWidget *em_message_browser_window_new(void)
static void
emmb_set_message(EMFolderView *emfv, const char *uid)
{
+ EMMessageBrowser *emmb = (EMMessageBrowser *) emfv;
+ CamelMessageInfo *info;
+
emmb_parent->set_message(emfv, uid);
-
+
+ info = camel_folder_get_message_info (emfv->folder, uid);
+ gtk_window_set_title ((GtkWindow *) emmb->window, camel_message_info_subject (info));
+ camel_folder_free_message_info (emfv->folder, info);
+
/* Well we don't know if it got displayed (yet) ... but whatever ... */
camel_folder_set_message_flags(emfv->folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
}