aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-07 23:31:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-07 23:35:18 +0800
commit42a69b14dfe9b4f05bfd24e71f228c1f392e2a39 (patch)
tree9050153b25662159829aeb93b20c123169badf4b /mail
parent2fde37ef3068e9b3f77774c29b1f391b9efbbe3a (diff)
downloadgsoc2013-evolution-42a69b14dfe9b4f05bfd24e71f228c1f392e2a39.tar
gsoc2013-evolution-42a69b14dfe9b4f05bfd24e71f228c1f392e2a39.tar.gz
gsoc2013-evolution-42a69b14dfe9b4f05bfd24e71f228c1f392e2a39.tar.bz2
gsoc2013-evolution-42a69b14dfe9b4f05bfd24e71f228c1f392e2a39.tar.lz
gsoc2013-evolution-42a69b14dfe9b4f05bfd24e71f228c1f392e2a39.tar.xz
gsoc2013-evolution-42a69b14dfe9b4f05bfd24e71f228c1f392e2a39.tar.zst
gsoc2013-evolution-42a69b14dfe9b4f05bfd24e71f228c1f392e2a39.zip
Bug 614644 - Email window's title is blank when subject is blank
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-browser.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index a6461e2bfe..78dd91b5c2 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -244,6 +244,7 @@ mail_browser_message_selected_cb (EMailBrowser *browser,
CamelMessageInfo *info;
CamelFolder *folder;
EMailReader *reader;
+ const gchar *title;
if (uid == NULL)
return;
@@ -257,9 +258,14 @@ mail_browser_message_selected_cb (EMailBrowser *browser,
if (info == NULL)
return;
- gtk_window_set_title (
- GTK_WINDOW (browser),
- camel_message_info_subject (info));
+ /* XXX The string here was added after the 2.30.0 release, so
+ * it's not marked for translation. But it IS marked for
+ * translation in 2.31. */
+ title = camel_message_info_subject (info);
+ if (title == NULL || *title == '\0')
+ title = "(No Subject)";
+
+ gtk_window_set_title (GTK_WINDOW (browser), title);
gtk_widget_grab_focus (
GTK_WIDGET (((EMFormatHTML *) html_display)->html));