diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-02-06 05:41:34 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-02-06 05:41:34 +0800 |
commit | a9f45747f1ac4ad3ae76d53e89638830f0929bb0 (patch) | |
tree | 28639707e615c5a6a5ca8f7598e9fe7f868c29a4 /mail | |
parent | f2400678cb02d9a759324c78fa45c321cc783f8e (diff) | |
download | gsoc2013-evolution-a9f45747f1ac4ad3ae76d53e89638830f0929bb0.tar gsoc2013-evolution-a9f45747f1ac4ad3ae76d53e89638830f0929bb0.tar.gz gsoc2013-evolution-a9f45747f1ac4ad3ae76d53e89638830f0929bb0.tar.bz2 gsoc2013-evolution-a9f45747f1ac4ad3ae76d53e89638830f0929bb0.tar.lz gsoc2013-evolution-a9f45747f1ac4ad3ae76d53e89638830f0929bb0.tar.xz gsoc2013-evolution-a9f45747f1ac4ad3ae76d53e89638830f0929bb0.tar.zst gsoc2013-evolution-a9f45747f1ac4ad3ae76d53e89638830f0929bb0.zip |
Set the new title. (em_message_browser_window_new): Connect to the
2004-02-05 Jeffrey Stedfast <fejj@ximian.com>
* em-message-browser.c (emmb_list_message_selected): Set the new
title.
(em_message_browser_window_new): Connect to the message_selected
signal in the message-list widget. Fixes bug #52232.
svn path=/trunk/; revision=24638
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/em-message-browser.c | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 3bc54cc1ec..f8c8caab9b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,10 @@ 2004-02-05 Jeffrey Stedfast <fejj@ximian.com> + * em-message-browser.c (emmb_list_message_selected): Set the new + title. + (em_message_browser_window_new): Connect to the message_selected + signal in the message-list widget. Fixes bug #52232. + * em-folder-tree-model.c (em_folder_tree_model_row_drop_target): Now takes a GdkContext arg... will need this later when we want to re-enable dnd of vfolders. diff --git a/mail/em-message-browser.c b/mail/em-message-browser.c index 4595db789d..c813445d79 100644 --- a/mail/em-message-browser.c +++ b/mail/em-message-browser.c @@ -154,6 +154,18 @@ window_size_allocate (GtkWidget *widget, GtkAllocation *allocation) g_object_unref (gconf); } +static void +emmb_list_message_selected (struct _MessageList *ml, const char *uid, EMMessageBrowser *emmb) +{ + EMFolderView *emfv = (EMFolderView *) emmb; + CamelMessageInfo *info; + + if ((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); + } +} + GtkWidget *em_message_browser_new(void) { EMMessageBrowser *emmb = g_object_new(em_message_browser_get_type(), 0); @@ -203,6 +215,7 @@ GtkWidget *em_message_browser_window_new(void) gtk_window_set_default_size ((GtkWindow *) emmb->window, window_size.width, window_size.height); g_signal_connect (emmb->window, "size-allocate", G_CALLBACK (window_size_allocate), NULL); + g_signal_connect (((EMFolderView *) emmb)->list, "message_selected", G_CALLBACK (emmb_list_message_selected), emmb); /* cleanup? */ |