aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-11-21 07:46:04 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-11-21 07:46:04 +0800
commit7d4c791a79455fc25bba4a088066cf3825bca01d (patch)
tree618f641b1289591199b801ec7adfc88f72e93d1c /composer/e-msg-composer.c
parente9f3fc8bba0abaabf4ef01cd1cd446926e88cb50 (diff)
downloadgsoc2013-evolution-7d4c791a79455fc25bba4a088066cf3825bca01d.tar
gsoc2013-evolution-7d4c791a79455fc25bba4a088066cf3825bca01d.tar.gz
gsoc2013-evolution-7d4c791a79455fc25bba4a088066cf3825bca01d.tar.bz2
gsoc2013-evolution-7d4c791a79455fc25bba4a088066cf3825bca01d.tar.lz
gsoc2013-evolution-7d4c791a79455fc25bba4a088066cf3825bca01d.tar.xz
gsoc2013-evolution-7d4c791a79455fc25bba4a088066cf3825bca01d.tar.zst
gsoc2013-evolution-7d4c791a79455fc25bba4a088066cf3825bca01d.zip
Duh! dont free subject & simplify logic a little.
2002-11-21 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (subject_changed_cb): Duh! dont free subject & simplify logic a little. 2002-11-20 Not Zed <NotZed@Ximian.com> * e-msg-composer-hdrs.c (entry_changed): duh, emit the signal using an initialised value(!). svn path=/trunk/; revision=18873
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 3df26f5449..87835892c7 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2153,12 +2153,7 @@ subject_changed_cb (EMsgComposerHdrs *hdrs,
composer = E_MSG_COMPOSER (data);
- if (strlen (subject))
- gtk_window_set_title (GTK_WINDOW (composer), subject);
- else
- gtk_window_set_title (GTK_WINDOW (composer),
- _("Compose a message"));
- g_free (subject);
+ gtk_window_set_title (GTK_WINDOW (composer), subject[0]?subject:_("Compose a message"));
}
static void