From 52fac8a12c3b8c8a5f94f6ba1644166dddfa59ad Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 1 Aug 2000 21:27:39 +0000 Subject: Constify param 2000-08-01 JP Rosevear * e-msg-composer.h: Constify param * e-msg-composer.c (get_signature): Constify param (set_editor_text): ditto (e_msg_composer_new_with_sig_file): ditto svn path=/trunk/; revision=4458 --- composer/ChangeLog | 8 ++++++++ composer/e-msg-composer.c | 6 +++--- composer/e-msg-composer.h | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index 9173e912fc..f5c8462b0b 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,11 @@ +2000-08-01 JP Rosevear + + * e-msg-composer.h: Constify param + + * e-msg-composer.c (get_signature): Constify param + (set_editor_text): ditto + (e_msg_composer_new_with_sig_file): ditto + 2000-08-01 Peter Williams * e-msg-composer.c (set_editor_text): sizeof("--\") != diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 9ba4862769..21a1ed31da 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -304,7 +304,7 @@ build_message (EMsgComposer *composer) } static char * -get_signature (char *sigfile) +get_signature (const char *sigfile) { char *rawsig; static char *htmlsig = NULL; @@ -354,7 +354,7 @@ get_signature (char *sigfile) } static void -set_editor_text (BonoboWidget *editor, char *sig_file, const char *text) +set_editor_text (BonoboWidget *editor, const char *sig_file, const char *text) { Bonobo_PersistStream persist; BonoboStream *stream; @@ -1229,7 +1229,7 @@ e_msg_composer_new (void) * Return value: A pointer to the newly created widget **/ GtkWidget * -e_msg_composer_new_with_sig_file (char *sig_file) +e_msg_composer_new_with_sig_file (const char *sig_file) { GtkWidget *new; diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h index 107b9e69a0..94e906a48e 100644 --- a/composer/e-msg-composer.h +++ b/composer/e-msg-composer.h @@ -82,7 +82,7 @@ GtkType e_msg_composer_get_type (void); void e_msg_composer_construct (EMsgComposer *composer); GtkWidget *e_msg_composer_new (void); -GtkWidget *e_msg_composer_new_with_sig_file (char *sig_file); +GtkWidget *e_msg_composer_new_with_sig_file (const char *sig_file); GtkWidget *e_msg_composer_new_from_url (const char *url); void e_msg_composer_show_attachments (EMsgComposer *composer, gboolean show); -- cgit v1.2.3