diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-04-07 23:31:22 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-04-07 23:34:58 +0800 |
commit | c63a626b5e401da99d499402dc17d535f5724050 (patch) | |
tree | e727564012123300625bf4818c3952a5f8c14fa7 /mail | |
parent | 16a3dce75b3f331e0f7ed12d1faf2d0488b47e2a (diff) | |
download | gsoc2013-evolution-c63a626b5e401da99d499402dc17d535f5724050.tar gsoc2013-evolution-c63a626b5e401da99d499402dc17d535f5724050.tar.gz gsoc2013-evolution-c63a626b5e401da99d499402dc17d535f5724050.tar.bz2 gsoc2013-evolution-c63a626b5e401da99d499402dc17d535f5724050.tar.lz gsoc2013-evolution-c63a626b5e401da99d499402dc17d535f5724050.tar.xz gsoc2013-evolution-c63a626b5e401da99d499402dc17d535f5724050.tar.zst gsoc2013-evolution-c63a626b5e401da99d499402dc17d535f5724050.zip |
Bug 614644 - Email window's title is blank when subject is blank
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-browser.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c index 67adeec352..a1d6d114bb 100644 --- a/mail/e-mail-browser.c +++ b/mail/e-mail-browser.c @@ -243,6 +243,7 @@ mail_browser_message_selected_cb (EMailBrowser *browser, CamelMessageInfo *info; CamelFolder *folder; EMailReader *reader; + const gchar *title; if (uid == NULL) return; @@ -256,9 +257,11 @@ mail_browser_message_selected_cb (EMailBrowser *browser, if (info == NULL) return; - gtk_window_set_title ( - GTK_WINDOW (browser), - camel_message_info_subject (info)); + 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)); |