diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-02-27 04:42:07 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-02-27 04:42:07 +0800 |
commit | bac1a59d59bb0326bb8b634bbf6ec973b20efd16 (patch) | |
tree | 8b40254ce41ef5951be0a14e0cb95d881616f34d /composer | |
parent | 22e5863a695a9e508d04d7dfc9a7f4c72500fcb1 (diff) | |
download | gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar.gz gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar.bz2 gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar.lz gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar.xz gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar.zst gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.zip |
Add a <br> tag between the message text and the signature text (makes it
2004-02-26 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (set_editor_text): Add a <br> tag between the
message text and the signature text (makes it nicer looking and
also fixes bug #53747.
svn path=/trunk/; revision=24897
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 8 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 16 |
2 files changed, 16 insertions, 8 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index a40f8c785c..a2be3658e4 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2004-02-26 Jeffrey Stedfast <fejj@ximian.com> + + * e-msg-composer.c (set_editor_text): Add a <br> tag between the + message text and the signature text (makes it nicer looking and + also fixes bug #53747. + 2004-02-17 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_unrealize): renamed from unmap @@ -66,7 +72,7 @@ 2004-01-28 Not Zed <NotZed@Ximian.com> ** See Bug #53176, probably fixes others too. - + * e-msg-composer.c (set_editor_text): When we set the text, always add the signature implictly. Means we don't have to set it manually and break changing the file, or hit any races. diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index b91d6205fd..a399b47b26 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1094,13 +1094,15 @@ set_editor_text(EMsgComposer *composer, const char *text, int setsig) /* This copying bullshit is because the bonobo stream interface is just painful */ len = strlen(text); - if (setsig - && (sig = get_signature_html(composer))) { - len += strlen(sig); - content = mem = g_malloc(len+1); - memcpy(mem, text, strlen(text)); - strcpy(mem + strlen(text), sig); - g_free(sig); + if (setsig && (sig = get_signature_html (composer))) { + char *p; + + len += strlen (sig) + 4; + content = p = mem = g_malloc (len + 1); + p = g_stpcpy (mem, text); + p = g_stpcpy (p, "<br>"); + strcpy (p, sig); + g_free (sig); } else { content = text; } |