aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--composer/ChangeLog10
-rw-r--r--composer/e-msg-composer-hdrs.c6
-rw-r--r--composer/e-msg-composer.c7
3 files changed, 14 insertions, 9 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 459eeadcf4..68bb062759 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,13 @@
+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(!).
+
2002-11-19 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (e_msg_composer_get_sig_file_content): use
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index 6dc091f913..6dce1ad737 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -369,11 +369,11 @@ header_new_recipient (EMsgComposerHdrs *hdrs, const char *name, const char *tip)
static void
entry_changed (GtkWidget *entry, EMsgComposerHdrs *hdrs)
{
- char *subject, *tmp;
+ char *subject;
- tmp = e_msg_composer_hdrs_get_subject (hdrs);
+ subject = e_msg_composer_hdrs_get_subject (hdrs);
g_signal_emit(hdrs, signals[SUBJECT_CHANGED], 0, subject);
- g_free (tmp);
+ g_free (subject);
g_signal_emit(hdrs, signals[HDRS_CHANGED], 0);
}
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